audio/wmusic: Add icon and doinst.sh.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-06 15:45:37 -05:00 committed by Willy Sudiarto Raharjo
parent f159e007a1
commit ed7d30fa83
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 17 additions and 1 deletions

9
audio/wmusic/doinst.sh Normal file
View file

@ -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

View file

@ -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