aboutsummaryrefslogtreecommitdiff
path: root/audio/jamulus/jamulus.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-01-12 04:39:39 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:31 +0700
commit91b10c2fc521b39118cbc574864f6a833545e155 (patch)
treec10b48d88d64513c0909cf1fcb5fcd2afec80982 /audio/jamulus/jamulus.SlackBuild
parent91f01dcfb83888f12c757e99093781bf7cc331af (diff)
audio/jamulus: Updated for version 3.9.1.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/jamulus/jamulus.SlackBuild')
-rw-r--r--audio/jamulus/jamulus.SlackBuild32
1 files changed, 16 insertions, 16 deletions
diff --git a/audio/jamulus/jamulus.SlackBuild b/audio/jamulus/jamulus.SlackBuild
index 34ff85be251f9..4b997610bc57e 100644
--- a/audio/jamulus/jamulus.SlackBuild
+++ b/audio/jamulus/jamulus.SlackBuild
@@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230112 bkw: update for v3.9.1.
# 20211207 bkw:
# - update for v3.8.1.
# - add 'headless' option to SERVERONLY=yes config.
@@ -16,7 +17,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=jamulus
-VERSION=${VERSION:-3.8.1}
+VERSION=${VERSION:-3.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -101,41 +102,40 @@ make install INSTALL_ROOT=$PKG
# binary already stripped.
-# Man page borrowed from Debian and modified slightly (since they
-# don't use 'noupcasename', their binary is called Jamulus).
+# Man page taken from the sourceand modified slightly.
# Had to make the man page a "1x" instead of "1": It uses BSD macros
# (see groff_mdoc(7)). If I made it a "1" man page, it would say
# "BSD General Commands Manual" unconditionally (no way to force it
# to say "SlackBuilds.org" or even "General Commands Manual").
mkdir -p $PKG/usr/man/man1
gzip -9c < $CWD/$PRGNAM.1x > $PKG/usr/man/man1/$PRGNAM.1x.gz
+rm -rf $PKG/usr/share/man # original page (in wrong place)
if [ "${SERVERONLY:-no}" != "yes" ]; then
- # 'make install' puts the SVG icons in the wrong place. also the only
- # png icon provided is 512x512, ludicrously large.
+ # The only png icon provided is 512x512, ludicrously large, make smaller ones.
+ # Note to self: use rsvg-convert rather than ImageMagick's convert, because
+ # IM behaves differently depending on whether inkscape is installed. It
+ # wouldn't really hurt anything, I just want to be consistent.
HICOLOR=$PKG/usr/share/icons/hicolor/
- mkdir -p $HICOLOR/scalable/apps
- mv $HICOLOR/512x512/apps/*.svg $HICOLOR/scalable/apps
+ ICNAME=io.jamulus.jamulus
- CVT="convert -background none"
for px in 16 32 48 64 128; do
size=${px}x${px}
dir=$HICOLOR/$size/apps
mkdir -p $dir
- $CVT -resize $size distributions/$PRGNAM.svg $dir/$PRGNAM.png
- $CVT -resize $size distributions/$PRGNAM-server.svg $dir/$PRGNAM-server.png
+ CVT="rsvg-convert --width=$px --height=$px"
+ $CVT src/res/$ICNAME.svg > $dir/$ICNAME.png
+ $CVT src/res/${ICNAME}server.svg > $dir/${ICNAME}server.png
done
mkdir -p $PKG/usr/share/pixmaps
- ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+ ln -s ../icons/hicolor/48x48/apps/$ICNAME.png $PKG/usr/share/pixmaps/$PRGNAM.png
fi
-# NEWS is a 0-byte placeholder in 3.4.3.
+# NEWS is a 0-byte placeholder in 3.4.3... and nonexistent in 3.9.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- COPYING ChangeLog CONTRIBUTING.md README.md \
- SECURITY.md RELEASE-PROCESS.md TRANSLATING.md \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING ChangeLog CONTRIBUTING.md README.md SECURITY.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Include our own (hopefully) helpful hints for servers.