aboutsummaryrefslogtreecommitdiff
path: root/audio
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
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')
-rw-r--r--audio/jack-rack/doinst.sh6
-rw-r--r--audio/jack-rack/jack-rack.SlackBuild19
-rw-r--r--audio/jack-rack/jack-rack.info2
3 files changed, 17 insertions, 10 deletions
diff --git a/audio/jack-rack/doinst.sh b/audio/jack-rack/doinst.sh
index 5fb28930db0b..3e5691a052b5 100644
--- a/audio/jack-rack/doinst.sh
+++ b/audio/jack-rack/doinst.sh
@@ -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
diff --git a/audio/jack-rack/jack-rack.SlackBuild b/audio/jack-rack/jack-rack.SlackBuild
index f5c6a6c53f52..f0c6b59f49a1 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
diff --git a/audio/jack-rack/jack-rack.info b/audio/jack-rack/jack-rack.info
index 642f4e4dcd4b..9f6348fd02f9 100644
--- a/audio/jack-rack/jack-rack.info
+++ b/audio/jack-rack/jack-rack.info
@@ -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=""