summaryrefslogtreecommitdiffstats
path: root/audio/tta/tta.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/tta/tta.SlackBuild')
-rw-r--r--audio/tta/tta.SlackBuild35
1 files changed, 19 insertions, 16 deletions
diff --git a/audio/tta/tta.SlackBuild b/audio/tta/tta.SlackBuild
index 106bc3cfac..0c91c26fd9 100644
--- a/audio/tta/tta.SlackBuild
+++ b/audio/tta/tta.SlackBuild
@@ -1,7 +1,9 @@
#!/bin/bash
-#
+
# Slackware build script for tta.
#
+# Copyright 2022 Dave Woodfall <dave@slackbuilds.org>
+#
# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
@@ -22,6 +24,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220317 bkw: Modified by SlackBuilds.org:
+# - fix build on 32-bit (hardcoded lib64 in script).
+# - actually use SLKCFLAGS.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tta
@@ -29,7 +35,7 @@ VERSION=${VERSION:-2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-SRCNAM="libtta-cpp"
+SRCNAM="libtta-c"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -39,9 +45,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -77,12 +80,12 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+
+# 20220317 bkw: this configure script ignores CFLAGS from the env...
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -92,16 +95,16 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
-make
-make install DESTDIR=$PKG
+# 20220317 bkw: ...do this to use our flags:
+sed -i "s,-O2,$SLKCFLAGS," Makefile
-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
+make
+make install-strip DESTDIR=$PKG
+rm -rf $PKG/usr/lib*
-DOCS="COPYING README"
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild
+cp -a COPYING README $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc