summaryrefslogtreecommitdiffstats
path: root/audio/sooperlooper/sooperlooper.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sooperlooper/sooperlooper.SlackBuild')
-rw-r--r--audio/sooperlooper/sooperlooper.SlackBuild30
1 files changed, 21 insertions, 9 deletions
diff --git a/audio/sooperlooper/sooperlooper.SlackBuild b/audio/sooperlooper/sooperlooper.SlackBuild
index ee56630b1b..f67a9f7dfe 100644
--- a/audio/sooperlooper/sooperlooper.SlackBuild
+++ b/audio/sooperlooper/sooperlooper.SlackBuild
@@ -2,10 +2,11 @@
# Slackware build script for sooperlooper
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# 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