diff options
Diffstat (limited to 'audio/mp3val/mp3val.SlackBuild')
-rw-r--r-- | audio/mp3val/mp3val.SlackBuild | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/audio/mp3val/mp3val.SlackBuild b/audio/mp3val/mp3val.SlackBuild index 2049c6d3b8..031fba6f35 100644 --- a/audio/mp3val/mp3val.SlackBuild +++ b/audio/mp3val/mp3val.SlackBuild @@ -1,11 +1,17 @@ #!/bin/bash -# Written by Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Written by Benjamin Trigona-Harany <email removed> -# Modified by B. Watson <yalhcru@gmail.com> +# Modified by B. Watson <urchlay@slackware.uk> # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230106 bkw: BUILD=4, add doinst.sh + +# 20211121 bkw: BUILD=3 +# - new-style icons. +# - replace old icon, too small for modern displays. + # 20140921 bkw: bump BUILD to 2 # - took over maintenance # - add man page @@ -19,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mp3val VERSION=${VERSION:-0.1.8} -BUILD=${BUILD:-2} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -31,9 +37,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 @@ -106,9 +109,16 @@ if [ "${GUI:-yes}" = "yes" ]; then mkdir -p $PKG/usr/share/applications cat $CWD/$GUINAME.desktop > $PKG/usr/share/applications/$GUINAME.desktop - # .xpm icon is a modified copy of windowmaker's Microphone.xpm + # icon made by SlackBuild author. Not pretty, sorry. + for px in 16 32 48 64 96; do + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + convert -resize $size $CWD/$GUINAME.png $dir/$GUINAME.png + done + mkdir -p $PKG/usr/share/pixmaps - cat $CWD/$GUINAME.xpm > $PKG/usr/share/pixmaps/$GUINAME.xpm + ln -s ../icons/hicolor/48x48/apps/$GUINAME.png $PKG/usr/share/pixmaps/$GUINAME.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$GUINAME-$GUIVER cp -a AUTHORS COPYING NEWS $PKG/usr/doc/$PRGNAM-$VERSION/$GUINAME-$GUIVER @@ -121,6 +131,7 @@ 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 |