audio/fantasia: New-style icons.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-12-07 13:32:29 -05:00 committed by Willy Sudiarto Raharjo
parent b57e04419b
commit 64acfa0b32
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 20 additions and 7 deletions

View File

@ -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.

View File

@ -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

View File

@ -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"