diff options
Diffstat (limited to 'audio/alsa-tools/alsa-tools.SlackBuild')
-rw-r--r-- | audio/alsa-tools/alsa-tools.SlackBuild | 48 |
1 files changed, 39 insertions, 9 deletions
diff --git a/audio/alsa-tools/alsa-tools.SlackBuild b/audio/alsa-tools/alsa-tools.SlackBuild index 4f29bff88d..8cf85cecd2 100644 --- a/audio/alsa-tools/alsa-tools.SlackBuild +++ b/audio/alsa-tools/alsa-tools.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for alsa-tools -# 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. @@ -13,6 +13,10 @@ # the firmware is being included in the package as well. # *** I agree. --rworkman :-) +# 20230706 bkw: fix build (heisenbug) +# 20220402 bkw: BUILD=2, remove broken symlinks, empty /etc dir +# 20210804 bkw: update for 1.2.5 (firmware 1.2.4) +# 20200224 bkw: update for 1.2.2 (firmware 1.2.1) # 20181204 bkw: update for 1.1.7 # 20180614 bkw: update for 1.1.6 # 20171214 bkw: update for 1.1.5 @@ -32,12 +36,15 @@ # 20140219 bkw: fix .desktop files so they validate +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=alsa-tools -VERSION=${VERSION:-1.1.7} -BUILD=${BUILD:-1} +VERSION=${VERSION:-1.2.5} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} -FIRMVER=${FIRMVER:-1.0.29} +FIRMVER=${FIRMVER:-1.2.4} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -47,7 +54,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} @@ -117,11 +128,21 @@ fi # hdspconf and hdspmixer depend on fltk. Don't build them if disabled or # not installed. -[ -e /usr/bin/fltk-config -a "${FLTK:-yes}" = "yes" ] || rm -rf hdspconf hdspmixer +if [ -e /usr/bin/fltk-config -a "${FLTK:-yes}" = "yes" ]; then + # 20200224 bkw: brokenness in 1.2.2, fixed in 1.2.5. + if [ "$VERSION" = "1.2.2" ]; then + sed -i 's,__u\(32\|64\),uint\1_t,g' hdspmixer/src/HDSPMixerWindow.cxx + fi +else + rm -rf hdspconf hdspmixer +fi # one loop to build them all. The -include stddef.h fixes qlo10k1 'ptrdiff_t doesn't # name a type' errors, and doesn't hurt anything else. -for subdir in $( find . -name configure | sed -e 's,^\./,,' -e 's,/configure,,' ); do +# 20230706 bkw: add '| sort', so we don't depend on the order 'find' lists +# things. specifically, lo10k1 must come before qlo10k1. +for subdir in $( find . -name configure | sed -e 's,^\./,,' -e 's,/configure,,' | sort ); do + echo "===> $subdir" cd $subdir LDFLAGS="-L/usr/lib$LIBDIRSUFFIX" \ @@ -205,9 +226,18 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +rm -f $PKG/usr/lib*/*.la + +# 20220402 bkw: the firmware tarball doesn't include this firmware, +# but 'make install' creates *broken* symlinks to it. +rm -rf $PKG/lib/firmware/turtlebeach/ + +# 20220402 bkw: /etc is included in the package for no apparent reason. +rmdir $PKG/etc + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |