diff options
author | B. Watson <yalhcru@gmail.com> | 2021-12-07 13:32:29 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-10 08:37:37 +0700 |
commit | 64acfa0b325069bb3537e83753346b7138377d10 (patch) | |
tree | a8bfd81bbb797fe3aaffcf0e65e04285a1ef71fc | |
parent | b57e04419b408c72bde993da3b6e0bf9cf6dae78 (diff) |
audio/fantasia: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-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 6abf3eafbc90b..8914f3bc2eec6 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 b3e4ae2ba4ff8..4a08ecc119a01 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 7f16fa9655099..a43f84ab7b57f 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" |