audio/jack-rack: New-style icon.

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-11-28 17:49:08 -05:00 committed by Willy Sudiarto Raharjo
parent a526051c16
commit 29967e30f0
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 17 additions and 10 deletions

View file

@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View file

@ -6,11 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20211128 bkw: BUILD=4, new-style icon.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=jack-rack
VERSION=${VERSION:-1.4.7}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -22,9 +24,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# 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
@ -57,11 +56,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
if [ "${LASH:-no}" = "yes" ]; then
LASH_OPT="--enable-lash"
@ -86,6 +82,11 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
# new-style icon.
mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps
mv $PKG/usr/share/pixmaps/jack-rack-icon.png $PKG/usr/share/icons/hicolor/48x48/apps
ln -s ../icons/hicolor/48x48/apps/jack-rack-icon.png $PKG/usr/share/pixmaps/
# Shipped .desktop file doesn't validate.
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop

View file

@ -1,7 +1,7 @@
PRGNAM="jack-rack"
VERSION="1.4.7"
HOMEPAGE="http://jack-rack.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/project/jack-rack/jack-rack/1.4.7/jack-rack-1.4.7.tar.bz2"
DOWNLOAD="https://downloads.sourceforge.net/project/jack-rack/jack-rack/1.4.7/jack-rack-1.4.7.tar.bz2"
MD5SUM="a29ef4001ee2916a1b758952c936adca"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""