diff options
author | B. Watson <yalhcru@gmail.com> | 2021-12-03 14:46:12 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-10 08:37:34 +0700 |
commit | 1c0b70b5f900126abed7defc0c5ca7b90e7fdc31 (patch) | |
tree | 8ab171449088a0956d45d677fe83bd78700e80a7 /audio/horgand | |
parent | 02ab76d51af3663246d8ba932298c2552840e368 (diff) | |
download | slackbuilds-1c0b70b5f900126abed7defc0c5ca7b90e7fdc31.tar.gz |
audio/horgand: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/horgand')
-rw-r--r-- | audio/horgand/doinst.sh | 6 | ||||
-rw-r--r-- | audio/horgand/horgand.SlackBuild | 19 |
2 files changed, 17 insertions, 8 deletions
diff --git a/audio/horgand/doinst.sh b/audio/horgand/doinst.sh index 5fb28930db..3e5691a052 100644 --- a/audio/horgand/doinst.sh +++ b/audio/horgand/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/horgand/horgand.SlackBuild b/audio/horgand/horgand.SlackBuild index b496fd195b..56fb3d410c 100644 --- a/audio/horgand/horgand.SlackBuild +++ b/audio/horgand/horgand.SlackBuild @@ -6,6 +6,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211203 bkw: BUILD=5, new-style icons # 20200117 bkw: fix default audio device, add startup info to README # 20151126 bkw: fix build on -current (preparing for 14.2) @@ -13,7 +14,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=horgand VERSION=${VERSION:-1.14} -BUILD=${BUILD:-4} +BUILD=${BUILD:-5} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -25,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 @@ -92,13 +90,18 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/share/applications cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +for px in 16 32 48 64 128; do + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + convert -resize $size src/${PRGNAM}128.xpm $dir/$PRGNAM.png +done + mkdir -p $PKG/usr/share/pixmaps -cat src/${PRGNAM}128.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm +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 \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |