summaryrefslogtreecommitdiffstats
path: root/audio/zita-ajbridge/zita-ajbridge.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/zita-ajbridge/zita-ajbridge.SlackBuild')
-rw-r--r--audio/zita-ajbridge/zita-ajbridge.SlackBuild27
1 files changed, 16 insertions, 11 deletions
diff --git a/audio/zita-ajbridge/zita-ajbridge.SlackBuild b/audio/zita-ajbridge/zita-ajbridge.SlackBuild
index adce97caa0..cbdf3ed671 100644
--- a/audio/zita-ajbridge/zita-ajbridge.SlackBuild
+++ b/audio/zita-ajbridge/zita-ajbridge.SlackBuild
@@ -1,20 +1,24 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for zita-ajbridge
-# 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.
+# 20201104 bkw: updated for v0.8.4
+# 20191202 bkw: updated for v0.8.2
+# 20170122 bkw: updated for v0.7.0
# 20151105 bkw: updated for v0.6.0, which now has man pages, so
# got rid of the ones I wrote.
-# 20170122 bkw: updated for v0.7.0
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=zita-ajbridge
-VERSION=${VERSION:-0.7.0}
+VERSION=${VERSION:-0.8.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -24,7 +28,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -52,11 +60,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# Makefile in 0.6.0 doesn't create these:
mkdir -p $PKG/usr/bin $PKG/usr/man/man1
@@ -87,4 +92,4 @@ if [ "${SETCAP:-yes}" = "yes" ]; then
fi
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE