summaryrefslogtreecommitdiff
path: root/audio/tagtool/tagtool.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:58 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:58 +0200
commit9f82eb857ab243ac59cf2315fd4e95eb97d3cd89 (patch)
tree64b3cd5cb76c66ba10e617371108b7134565bee3 /audio/tagtool/tagtool.SlackBuild
parent63e0074886482788d5d34e3de7e05b0604ca7ded (diff)
downloadslackbuilds-9f82eb857ab243ac59cf2315fd4e95eb97d3cd89.tar.gz
audio/tagtool: Moved from multimedia
Diffstat (limited to 'audio/tagtool/tagtool.SlackBuild')
-rw-r--r--audio/tagtool/tagtool.SlackBuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/audio/tagtool/tagtool.SlackBuild b/audio/tagtool/tagtool.SlackBuild
new file mode 100644
index 0000000000..169f15bbde
--- /dev/null
+++ b/audio/tagtool/tagtool.SlackBuild
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# Slackware build script for tagtool
+# Written by scion (grbzks@gmail.com)
+set -e
+
+PRGNAM=tagtool
+VERSION=0.12.3
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz