summaryrefslogtreecommitdiffstats
path: root/audio/audtty/audtty.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2012-09-15 09:12:25 +0200
committer dsomero <xgizzmo@slackbuilds.org>2012-09-16 19:44:40 -0400
commitb91b25e175a26b20319259e3dc7a432ead5af5fb (patch)
tree76866d78062a5945cd93a1c99c58c0918c0c97c0 /audio/audtty/audtty.SlackBuild
parent7967c79891a3d523a160dfb559cd571e1768c666 (diff)
downloadslackbuilds-b91b25e175a26b20319259e3dc7a432ead5af5fb.tar.gz
slackbuilds-b91b25e175a26b20319259e3dc7a432ead5af5fb.tar.xz
audio/audtty: Updated for version 0.1.12.
Added also some patches from git. Rewritten the gcc/DESTDIR patch Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/audtty/audtty.SlackBuild')
-rw-r--r--audio/audtty/audtty.SlackBuild24
1 files changed, 11 insertions, 13 deletions
diff --git a/audio/audtty/audtty.SlackBuild b/audio/audtty/audtty.SlackBuild
index 33c0df0908..efe0bc6dfc 100644
--- a/audio/audtty/audtty.SlackBuild
+++ b/audio/audtty/audtty.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=audtty
-VERSION=${VERSION:-0.1.9a}
+VERSION=${VERSION:-0.1.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,8 +63,6 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
-# Since audtty-0.1.9a.tar.gz unpacks as 'auddty' fix it by:
-mv $TMP/$PRGNAM $TMP/$PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -73,8 +71,13 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Patch from Gentoo Linux (fixes DESTDIR)
-patch -p1 < $CWD/audtty-0.1.9a-cc-and-destdir.patch || exit 1
+# Add latest patches from git and one fixing DESTDIR from gentoo (adapted)
+for i in $CWD/patches/* ; do patch -p1 < $i ; done
+
+sed -i \
+ -e "s|@LIBDIRSUFFIX@|${LIBDIRSUFFIX}|" \
+ -e "s|@SLKCFLAGS@|${SLKCFLAGS}|" \
+ Makefile.in
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -89,16 +92,11 @@ CXXFLAGS="$SLKCFLAGS" \
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
-# Move man pages to /usr/man manually
-mv $PKG/usr/share/man $PKG/usr/
-
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \