diff options
Diffstat (limited to 'audio/mp3val/mp3val.SlackBuild')
-rw-r--r-- | audio/mp3val/mp3val.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/audio/mp3val/mp3val.SlackBuild b/audio/mp3val/mp3val.SlackBuild index 2049c6d3b8509..0eb88c2364f78 100644 --- a/audio/mp3val/mp3val.SlackBuild +++ b/audio/mp3val/mp3val.SlackBuild @@ -1,11 +1,14 @@ #!/bin/bash -# Written by Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Written by Benjamin Trigona-Harany <email removed> # Modified by B. Watson <yalhcru@gmail.com> # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 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 @@ -31,9 +34,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 +106,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 |