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.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/audio/tta/tta.SlackBuild b/audio/tta/tta.SlackBuild
index 106bc3cfac..a6300e006f 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.
#
@@ -29,7 +31,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
@@ -82,7 +84,6 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -94,14 +95,13 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+rm -fv $PKG/usr/lib64/libtta.a
+rmdir -v $PKG/usr/lib64
+strip --strip-unneeded $PKG/usr/bin/tta
-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
-
-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