summaryrefslogtreecommitdiffstats
path: root/audio/aacplusenc/aacplusenc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/aacplusenc/aacplusenc.SlackBuild')
-rw-r--r--audio/aacplusenc/aacplusenc.SlackBuild19
1 files changed, 8 insertions, 11 deletions
diff --git a/audio/aacplusenc/aacplusenc.SlackBuild b/audio/aacplusenc/aacplusenc.SlackBuild
index 274b649738..43d4442875 100644
--- a/audio/aacplusenc/aacplusenc.SlackBuild
+++ b/audio/aacplusenc/aacplusenc.SlackBuild
@@ -1,7 +1,9 @@
#!/bin/sh
-#
+
# Slackware build script for aacplusenc.
#
+# Maintained by D Woodfall
+#
# Copyright 2015-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
@@ -24,7 +26,7 @@
PRGNAM=aacplusenc
VERSION=${VERSION:-0.17.5}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -59,10 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM
tar xvf $CWD/${PRGNAM}_${VERSION}.tar.gz
-mv $PRGNAM $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
+cd $PRGNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -71,7 +72,6 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -81,11 +81,8 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
-make
-
-mkdir -p $PKG/usr/bin
-cp -a aacplusenc $PKG/usr/bin
-strip -s -R.comment $PKG/usr/bin/aacplusenc
+make EXTRACFLAGS="$SLKCFLAGS"
+make install INSTDIR=$PKG/usr
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