summaryrefslogtreecommitdiffstats
path: root/audio/jack-rack/jack-rack.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/jack-rack/jack-rack.SlackBuild')
-rw-r--r--audio/jack-rack/jack-rack.SlackBuild21
1 files changed, 11 insertions, 10 deletions
diff --git a/audio/jack-rack/jack-rack.SlackBuild b/audio/jack-rack/jack-rack.SlackBuild
index f5c6a6c53f..91da4f397d 100644
--- a/audio/jack-rack/jack-rack.SlackBuild
+++ b/audio/jack-rack/jack-rack.SlackBuild
@@ -2,15 +2,17 @@
# Slackware build script for jack-rack
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# 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