audio/libfreeaptx: Script cleanup.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
thnkman 2024-01-02 15:59:28 +01:00 committed by Willy Sudiarto Raharjo
parent 386b310ab3
commit ca28f75848
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -2,7 +2,7 @@
# Slackware build script for libfreeaptx
# Copyright 2023 thnkman
# Copyright 2023 thnkman <thnkman@proton.me>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,6 +24,8 @@
cd $(dirname $0) ; CWD=$(pwd)
set -e
PRGNAM=libfreeaptx
VERSION=${VERSION:-0.1.1}
BUILD=${BUILD:-1}
@ -61,8 +63,6 @@ else
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@ -92,12 +92,11 @@ rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/{install,usr/doc/$PRGNAM-$VERSION}
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
install -D -m 0644 COPYING README $CWD/$PRGNAM.SlackBuild \
$PKG/usr/doc/$PRGNAM-$VERSION/
install -D -m 0644 $CWD/slack-desc $PKG/install/
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE