diff options
author | B. Watson <yalhcru@gmail.com> | 2021-11-26 13:23:29 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-04 10:09:01 +0700 |
commit | 5672611d1dc93fd2fd285ca0a36815288e05a289 (patch) | |
tree | 5d49a6da55058c7005d61350aa1cef396cea0c24 /audio/sooperlooper/sooperlooper.SlackBuild | |
parent | 1c00df53fae0ac63d25b90d3d7e1a07465edf176 (diff) | |
download | slackbuilds-5672611d1dc93fd2fd285ca0a36815288e05a289.tar.gz |
audio/sooperlooper: Updated for version 1.7.8.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/sooperlooper/sooperlooper.SlackBuild')
-rw-r--r-- | audio/sooperlooper/sooperlooper.SlackBuild | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/audio/sooperlooper/sooperlooper.SlackBuild b/audio/sooperlooper/sooperlooper.SlackBuild index ee56630b1b..89b12ae122 100644 --- a/audio/sooperlooper/sooperlooper.SlackBuild +++ b/audio/sooperlooper/sooperlooper.SlackBuild @@ -6,6 +6,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211126 bkw: update for v1.7.8, new-style icons. # 20201104 bkw: update for v1.7.6. The wxPython (wx 2.8) build is # currently broken. Temporarily disabled, but I dunno if upstream # will fix it (may not care about 2.8 any longer). @@ -23,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=sooperlooper -VERSION=${VERSION:-1.7.6} +VERSION=${VERSION:-1.7.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -36,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 @@ -67,6 +65,7 @@ set -e # We can't trust the /usr/bin/wx-config symlink. # Find the correct wx-config, if it exists. # 20201104 bkw: in 1.7.6, the 2.8 build is broken, it's 3.0 or nothing. +# 20211126 bkw: wx-2.8 build still broken in 1.7.8. WXVER=3.0 WXCONFIG="$( ls /usr/lib$LIBDIRSUFFIX/wx/config/*-$WXVER 2>/dev/null | head -1 )" if [ ! -x "$WXCONFIG" ]; then @@ -106,12 +105,25 @@ make install DESTDIR=$PKG # autotools, I'll just do it manually. strip $PKG/usr/bin/* -# Man pages, desktop, icon borrowed from Debian (thanks!) -mkdir -p $PKG/usr/share/applications -cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +# Icons extracted from the OSX dmg. Had to use dmg2img, then "7z x" +# on the .img file, then find the .icns file (there were 2 identical +# ones) and use icns2png on that. Worth it, these look nicer than the +# old 32x32 icon from Debian. + +for i in $CWD/icons/*.png; do + px="$( basename $i .png )" + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + cat $i > $dir/$PRGNAM.png +done mkdir -p $PKG/usr/share/pixmaps -cat $CWD/$PRGNAM.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + +# Man pages and desktop borrowed from Debian (thanks!) +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/man/man1 for page in $CWD/man/*; do |