diff options
-rw-r--r-- | audio/fantasia/README | 4 | ||||
-rw-r--r-- | audio/fantasia/fantasia.SlackBuild | 21 | ||||
-rw-r--r-- | audio/fantasia/fantasia.info | 2 |
3 files changed, 20 insertions, 7 deletions
diff --git a/audio/fantasia/README b/audio/fantasia/README index 6abf3eafbc..8914f3bc2e 100644 --- a/audio/fantasia/README +++ b/audio/fantasia/README @@ -1 +1,5 @@ fantasia (Java-based GUI frontend for LinuxSampler) + +Although I've listed openjdk8 as a required dependency, other JDK +implementations such as jdk (Oracle) or adoptopenjdk probably work +too. I just haven't tested them myself. diff --git a/audio/fantasia/fantasia.SlackBuild b/audio/fantasia/fantasia.SlackBuild index b3e4ae2ba4..4a08ecc119 100644 --- a/audio/fantasia/fantasia.SlackBuild +++ b/audio/fantasia/fantasia.SlackBuild @@ -6,18 +6,17 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211207 bkw: BUILD=2, new-style icons. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=fantasia VERSION=${VERSION:-0.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -54,9 +53,19 @@ chmod 0755 $PKG/usr/bin/$PRGNAM # Stick the icon where it goes unzip -j $CWD/$SRCNAM-$VERSION.jar \ org/jsampler/view/fantasia/res/icons/LinuxSampler-logo.png + +convert -background none -extent 128x128 -gravity center \ + LinuxSampler-logo.png PNG24:$PRGNAM.png + +for px in 16 32 48 64 128; do + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + convert -resize $size $PRGNAM.png $dir/$PRGNAM.png +done + mkdir -p $PKG/usr/share/pixmaps -install -m0644 -oroot -groot LinuxSampler-logo.png \ - $PKG/usr/share/pixmaps/$PRGNAM.png +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png # .desktop file written by SlackBuild author mkdir -p $PKG/usr/share/applications diff --git a/audio/fantasia/fantasia.info b/audio/fantasia/fantasia.info index 7f16fa9655..a43f84ab7b 100644 --- a/audio/fantasia/fantasia.info +++ b/audio/fantasia/fantasia.info @@ -5,6 +5,6 @@ DOWNLOAD="http://downloads.sourceforge.net/project/jsampler/Fantasia/Fantasia%20 MD5SUM="55f781785224cf7fc1c5999b683f9577" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="jdk linuxsampler" +REQUIRES="openjdk8 linuxsampler" MAINTAINER="B. Watson" EMAIL="yalhcru@gmail.com" |