mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
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:
parent
a526051c16
commit
29967e30f0
3 changed files with 17 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue