diff options
author | B. Watson | 2021-11-30 01:54:10 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2021-12-04 04:09:06 +0100 |
commit | fcab1aaff1e32db085c141e2091abf1a463261e8 (patch) | |
tree | 4cb5c4ac2af34e558325309864cf48a5a0a2979f /audio/jaaa/jaaa.SlackBuild | |
parent | c1279d3211321dc232a4fba93606ca214dbecbcb (diff) | |
download | slackbuilds-fcab1aaff1e32db085c141e2091abf1a463261e8.tar.gz |
audio/jaaa: New-style icons, expand man page.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/jaaa/jaaa.SlackBuild')
-rw-r--r-- | audio/jaaa/jaaa.SlackBuild | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/audio/jaaa/jaaa.SlackBuild b/audio/jaaa/jaaa.SlackBuild index 78d390e77e..04fe83700b 100644 --- a/audio/jaaa/jaaa.SlackBuild +++ b/audio/jaaa/jaaa.SlackBuild @@ -6,11 +6,13 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211129 bkw: BUILD=2, new-style icons, expand man page. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jaaa VERSION=${VERSION:-0.9.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -22,9 +24,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 @@ -77,9 +76,21 @@ mkdir -p $PKG/usr/man/man1 gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/share/applications -cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +for i in $PRGNAM $PRGNAM-alsa; do + cat $CWD/$i.desktop > $PKG/usr/share/applications/$i.desktop +done + +# the 32x32 icon comes from Debian. +# the 48x48 icon is the 32x32 one, centered in a 48x48 transparent PNG. +mkdir -p $PKG/usr/share/icons/hicolor/{32x32,48x48}/apps +convert $CWD/$PRGNAM.xpm \ + $PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png +convert -background none -extent 48x48 -gravity center \ + $CWD/$PRGNAM.xpm \ + $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png mkdir -p $PKG/usr/share/pixmaps +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png cat $CWD/$PRGNAM.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |