diff options
author | thnkman <thnkman@proton.me> | 2024-01-02 15:59:28 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-01-02 22:43:28 +0700 |
commit | ca28f758487b45777257432e477ea4c52e5ede08 (patch) | |
tree | 80f033e3800b8b89d003ce8e2981e9925850b32d /audio/libfreeaptx | |
parent | 386b310ab36762644c533ac868785cf8d6b14fcd (diff) |
audio/libfreeaptx: Script cleanup.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/libfreeaptx')
-rw-r--r-- | audio/libfreeaptx/libfreeaptx.SlackBuild | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/audio/libfreeaptx/libfreeaptx.SlackBuild b/audio/libfreeaptx/libfreeaptx.SlackBuild index a595ba0ece051..d315ffe3d2b2e 100644 --- a/audio/libfreeaptx/libfreeaptx.SlackBuild +++ b/audio/libfreeaptx/libfreeaptx.SlackBuild @@ -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 |