diff options
Diffstat (limited to 'audio/audtty/audtty.SlackBuild')
-rw-r--r-- | audio/audtty/audtty.SlackBuild | 24 |
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 \ |