diff options
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 |