diff options
author | B. Watson <yalhcru@gmail.com> | 2021-12-05 16:27:16 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-10 08:37:37 +0700 |
commit | ad5128632144c6a6e5bb876ef2d69667b641d0d0 (patch) | |
tree | 12a679502ff8b960b934876388ba983967659ce6 /audio | |
parent | f5e72e939642b5d78bf6e2557d94417faa0ea3c8 (diff) |
audio/rakarrack: New-style icons.
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/rakarrack/doinst.sh | 6 | ||||
-rw-r--r-- | audio/rakarrack/rakarrack.SlackBuild | 33 | ||||
-rw-r--r-- | audio/rakarrack/rakarrack.info | 2 |
3 files changed, 28 insertions, 13 deletions
diff --git a/audio/rakarrack/doinst.sh b/audio/rakarrack/doinst.sh index 5fb28930db0b..3e5691a052b5 100644 --- a/audio/rakarrack/doinst.sh +++ b/audio/rakarrack/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/rakarrack/rakarrack.SlackBuild b/audio/rakarrack/rakarrack.SlackBuild index bdce438652e2..013d4cf06472 100644 --- a/audio/rakarrack/rakarrack.SlackBuild +++ b/audio/rakarrack/rakarrack.SlackBuild @@ -6,15 +6,15 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211205 bkw: BUILD=3, new-style icons. # 20140114 bkw: add 64-bit distortion fix and setcap stuff. - # 20151126 bkw: fix build on -current, preparing for 14.2. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=rakarrack VERSION=${VERSION:-0.6.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -26,9 +26,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 @@ -61,11 +58,10 @@ 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 640 -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 {} \+ + +sed -i "/Icon=/s,=.*,=$PRGNAM," data/$PRGNAM.desktop # work around a bug that causes distorion/overdrive not to work on 64-bit. # this is a band-aid, not a real solution, but it seems to work OK. @@ -90,10 +86,23 @@ make make install-strip DESTDIR=$PKG gzip $PKG/usr/man/man?/*.? +rm -rf $PKG/usr/share/pixmaps/* +for px in 32 64 128; do + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + cp -a icons/icono_rakarrack_$size.png $dir/$PRGNAM.png +done + +mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps +convert -resize 48x48 \ + icons/icono_rakarrack_128x128.png \ + $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png + +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog NEWS README TODO \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/audio/rakarrack/rakarrack.info b/audio/rakarrack/rakarrack.info index 011720843d12..23cb528d4690 100644 --- a/audio/rakarrack/rakarrack.info +++ b/audio/rakarrack/rakarrack.info @@ -1,7 +1,7 @@ PRGNAM="rakarrack" VERSION="0.6.1" HOMEPAGE="http://rakarrack.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/project/rakarrack/rakarrack/rakarrack-0.6.1/rakarrack-0.6.1.tar.bz2" +DOWNLOAD="https://downloads.sourceforge.net/project/rakarrack/rakarrack/rakarrack-0.6.1/rakarrack-0.6.1.tar.bz2" MD5SUM="56b1e04779ae3d56cc8a3ad3c4e25152" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |