diff options
author | B. Watson <yalhcru@gmail.com> | 2021-11-21 17:42:51 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-04 10:08:57 +0700 |
commit | 6cb226656c1263ff0e07d183e30e32bd1cb8f6bc (patch) | |
tree | 148dd1f4d343ce2fa7742de7f8105fe99fec65cd /audio/mp3val/mp3val.SlackBuild | |
parent | 08c93ef22ed370b480a740d8480acd4d3d8f91fd (diff) | |
download | slackbuilds-6cb226656c1263ff0e07d183e30e32bd1cb8f6bc.tar.gz slackbuilds-6cb226656c1263ff0e07d183e30e32bd1cb8f6bc.tar.xz |
audio/mp3val: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 2049c6d3b8..0eb88c2364 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 |