diff options
author | B. Watson <urchlay@slackware.uk> | 2023-01-06 15:45:37 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:15 +0700 |
commit | ed7d30fa839736f015ea6dfba5641ed8a742806d (patch) | |
tree | 9a1d424b9e3472d5a0245808d6287f277db43e96 /audio | |
parent | f159e007a106267b3119a8ff3583bc106b396767 (diff) |
audio/wmusic: Add icon and doinst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/wmusic/doinst.sh | 9 | ||||
-rw-r--r-- | audio/wmusic/wmusic.SlackBuild | 9 |
2 files changed, 17 insertions, 1 deletions
diff --git a/audio/wmusic/doinst.sh b/audio/wmusic/doinst.sh new file mode 100644 index 0000000000000..3e5691a052b5b --- /dev/null +++ b/audio/wmusic/doinst.sh @@ -0,0 +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/wmusic/wmusic.SlackBuild b/audio/wmusic/wmusic.SlackBuild index dc383f7ee9435..4e15041a9ee24 100644 --- a/audio/wmusic/wmusic.SlackBuild +++ b/audio/wmusic/wmusic.SlackBuild @@ -27,6 +27,7 @@ # Currently maintained by B. Watson <urchlay@slackware.uk> +# 20230106 bkw: BUILD=3, add doinst.sh and icon. # 20211019 bkw: BUILD=2, fix build for updated playerctl. # 20180916 bkw: update for v2.0.0. @@ -41,7 +42,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=wmusic VERSION=${VERSION:-2.0.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -114,12 +115,18 @@ sed -i '/see the Info files/d' $PRGNAM.1 make install-strip DESTDIR=$PKG gzip -9 $PKG/usr/man/man1/$PRGNAM.1 +# 20230106 bkw: there's a .desktop, might as well have an icon. +mkdir -p $PKG/usr/share/icons/hicolor/64x64/apps +convert src/wmusic-master.xpm $PKG/usr/share/icons/hicolor/64x64/apps/$PRGNAM.png +echo "Icon=wmusic" >> $PKG/usr/share/applications/$PRGNAM.desktop + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README COPYING ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |