diff options
Diffstat (limited to 'audio/zita-dpl1')
-rw-r--r-- | audio/zita-dpl1/README | 2 | ||||
-rw-r--r-- | audio/zita-dpl1/doinst.sh | 5 | ||||
-rw-r--r-- | audio/zita-dpl1/slack-desc | 2 | ||||
-rw-r--r-- | audio/zita-dpl1/zita-dpl1.SlackBuild | 44 | ||||
-rw-r--r-- | audio/zita-dpl1/zita-dpl1.info | 12 | ||||
-rw-r--r-- | audio/zita-dpl1/zita-dpl1.png | bin | 0 -> 8772 bytes |
6 files changed, 43 insertions, 22 deletions
diff --git a/audio/zita-dpl1/README b/audio/zita-dpl1/README index 4c18126686..b849f68dde 100644 --- a/audio/zita-dpl1/README +++ b/audio/zita-dpl1/README @@ -1,4 +1,4 @@ -zita-dpl1 (limiter for jack-audio-connection-kit) +zita-dpl1 (limiter for JACK) Zita-dpl1 is a look-ahead digital peak level limiter using some special algorithms to allow fast response without excessive LF distortion. diff --git a/audio/zita-dpl1/doinst.sh b/audio/zita-dpl1/doinst.sh index 4e8ba7071d..3e5691a052 100644 --- a/audio/zita-dpl1/doinst.sh +++ b/audio/zita-dpl1/doinst.sh @@ -2,3 +2,8 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/audio/zita-dpl1/slack-desc b/audio/zita-dpl1/slack-desc index 0be55135ab..4924d99a66 100644 --- a/audio/zita-dpl1/slack-desc +++ b/audio/zita-dpl1/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -zita-dpl1: zita-dpl1 (limiter for jack-audio-connection-kit) +zita-dpl1: zita-dpl1 (limiter for JACK) zita-dpl1: zita-dpl1: Zita-dpl1 is a look-ahead digital peak level limiter using some zita-dpl1: special algorithms to allow fast response without excessive LF diff --git a/audio/zita-dpl1/zita-dpl1.SlackBuild b/audio/zita-dpl1/zita-dpl1.SlackBuild index 4e472a9682..57989232a4 100644 --- a/audio/zita-dpl1/zita-dpl1.SlackBuild +++ b/audio/zita-dpl1/zita-dpl1.SlackBuild @@ -1,17 +1,23 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for zita-dpl1 -# 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. +# 20230106 bkw: BUILD=3, fix bad doc ownership, fix doinst.sh. +# 20211205 bkw: BUILD=2, new-style icons. +# 20191202 bkw: updated for v0.3.3 # 20170122 bkw: updated for v0.1.0 +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=zita-dpl1 -VERSION=${VERSION:-0.1.0} -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.3.3} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -21,7 +27,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} @@ -49,11 +59,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 {} \+ if [ "${FORCE_SLACK_CFLAGS:-no}" = "yes" ]; then sed -i \ @@ -61,12 +68,22 @@ if [ "${FORCE_SLACK_CFLAGS:-no}" = "yes" ]; then -e "s,-O2 -ffast-math,$SLKCFLAGS," fi +sed -i 's,pkgconf,pkg-config,' source/Makefile + make -C source PREFIX=/usr make -C source install PREFIX=/usr DESTDIR=$PKG strip $PKG/usr/bin/$PRGNAM + +for px in 16 32 48 64 128; do + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + convert -resize $size $CWD/$PRGNAM.png $dir/$PRGNAM.png +done + mkdir -p $PKG/usr/share/pixmaps -cat share/redzita.png > $PKG/usr/share/pixmaps/$PRGNAM.png +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/share/applications cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop @@ -75,8 +92,7 @@ mkdir -p $PKG/usr/man/man1 gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING LICENSE README doc/* \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING README doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -92,4 +108,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 diff --git a/audio/zita-dpl1/zita-dpl1.info b/audio/zita-dpl1/zita-dpl1.info index 0fbf967ffc..4200944dac 100644 --- a/audio/zita-dpl1/zita-dpl1.info +++ b/audio/zita-dpl1/zita-dpl1.info @@ -1,10 +1,10 @@ PRGNAM="zita-dpl1" -VERSION="0.1.0" -HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/zita-dpl1-doc/quickguide.html" -DOWNLOAD="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-dpl1-0.1.0.tar.bz2" -MD5SUM="32e82022c7d9fd996c998877de165594" +VERSION="0.3.3" +HOMEPAGE="https://kokkinizita.linuxaudio.org/linuxaudio/zita-dpl1-doc/quickguide.html" +DOWNLOAD="https://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-dpl1-0.3.3.tar.bz2" +MD5SUM="7939c13dbd519f8889c6fe9f816d6cd6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="jack-audio-connection-kit clxclient" +REQUIRES="jack clxclient" MAINTAINER="B. Watson" -EMAIL="yalhcru@gmail.com" +EMAIL="urchlay@slackware.uk" diff --git a/audio/zita-dpl1/zita-dpl1.png b/audio/zita-dpl1/zita-dpl1.png Binary files differnew file mode 100644 index 0000000000..df37da0bcb --- /dev/null +++ b/audio/zita-dpl1/zita-dpl1.png |