mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
f159e007a1
commit
ed7d30fa83
2 changed files with 17 additions and 1 deletions
9
audio/wmusic/doinst.sh
Normal file
9
audio/wmusic/doinst.sh
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue