diff --git a/audio/alsacap/alsacap.SlackBuild b/audio/alsacap/alsacap.SlackBuild index 8cc0ce49ac..53668aedf0 100644 --- a/audio/alsacap/alsacap.SlackBuild +++ b/audio/alsacap/alsacap.SlackBuild @@ -17,11 +17,13 @@ # compiler warnings in alsacap.c. VERSION now 20200821 (modification time # of alsacap.c). +# 20240824 bkw: BUILD=2, add doinst/douninst for man page database. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=alsacap VERSION=${VERSION:-20200821} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -44,16 +46,12 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -65,8 +63,8 @@ rm -rf $PRGNAM tar xvf $CWD/$PRGNAM.tgz cd $PRGNAM chown -R root:root . -find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ - \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + sed -i "s,gcc,gcc $SLKCFLAGS," Makefile make @@ -80,6 +78,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/douninst.sh > $PKG/install/douninst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/audio/alsacap/doinst.sh b/audio/alsacap/doinst.sh new file mode 100644 index 0000000000..1295f532e5 --- /dev/null +++ b/audio/alsacap/doinst.sh @@ -0,0 +1,3 @@ +if [ -x usr/bin/mandb ]; then + chroot . /usr/bin/mandb -f /usr/man/man1/alsacap.1.gz &> /dev/null +fi diff --git a/audio/alsacap/douninst.sh b/audio/alsacap/douninst.sh new file mode 100644 index 0000000000..985b453648 --- /dev/null +++ b/audio/alsacap/douninst.sh @@ -0,0 +1,3 @@ +if [ -x usr/bin/mandb ]; then + chroot . /usr/bin/mandb &> /dev/null +fi