aboutsummaryrefslogtreecommitdiff
path: root/audio/jack-rack/jack-rack.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-11-28 17:49:08 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-12-04 10:09:05 +0700
commit29967e30f00e62ddfa9fb910319390fcefcef9d0 (patch)
tree524224353d003789e5fe8a7876d5f66e0efd2ee0 /audio/jack-rack/jack-rack.SlackBuild
parenta526051c164bc4f0529c096b8f8f727291750748 (diff)
audio/jack-rack: New-style icon.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/jack-rack/jack-rack.SlackBuild')
-rw-r--r--audio/jack-rack/jack-rack.SlackBuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/audio/jack-rack/jack-rack.SlackBuild b/audio/jack-rack/jack-rack.SlackBuild
index f5c6a6c53f520..f0c6b59f49a1f 100644
--- a/audio/jack-rack/jack-rack.SlackBuild
+++ b/audio/jack-rack/jack-rack.SlackBuild
@@ -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