mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
audio/alsacap: Add doinst/douninst for mandb.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
d7683b6d00
commit
ad8ab1e74e
3 changed files with 13 additions and 7 deletions
|
@ -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
|
||||
|
|
3
audio/alsacap/doinst.sh
Normal file
3
audio/alsacap/doinst.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -x usr/bin/mandb ]; then
|
||||
chroot . /usr/bin/mandb -f /usr/man/man1/alsacap.1.gz &> /dev/null
|
||||
fi
|
3
audio/alsacap/douninst.sh
Normal file
3
audio/alsacap/douninst.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -x usr/bin/mandb ]; then
|
||||
chroot . /usr/bin/mandb &> /dev/null
|
||||
fi
|
Loading…
Reference in a new issue