summaryrefslogtreecommitdiff
path: root/audio/mp3check/mp3check.SlackBuild
diff options
context:
space:
mode:
authorAudrius Kažukauskas <audrius@neutrino.lt>2010-05-13 00:21:37 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:21:37 +0200
commit188b1d98a432454bf5ffbebdbd0209b1156a1bc1 (patch)
tree830ca78d995f8cdad72150ac3d07fb09180f6646 /audio/mp3check/mp3check.SlackBuild
parent0428d6eaba0a95f8770514c3e8eef98a4afc3802 (diff)
downloadslackbuilds-188b1d98a432454bf5ffbebdbd0209b1156a1bc1.tar.gz
audio/mp3check: Updated for version 0.8.4
Diffstat (limited to 'audio/mp3check/mp3check.SlackBuild')
-rw-r--r--audio/mp3check/mp3check.SlackBuild36
1 files changed, 17 insertions, 19 deletions
diff --git a/audio/mp3check/mp3check.SlackBuild b/audio/mp3check/mp3check.SlackBuild
index d327b9d930..ae064baa56 100644
--- a/audio/mp3check/mp3check.SlackBuild
+++ b/audio/mp3check/mp3check.SlackBuild
@@ -1,10 +1,10 @@
#!/bin/sh
# Slackware build script for mp3check
-# Written by Audrius Kažukauskas <neobug@tornado.ktu.lt>
+# Written by Audrius Kažukauskas <audrius@neutrino.lt>
PRGNAM=mp3check
-VERSION=0.8.3
+VERSION=0.8.4
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -16,8 +16,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e # Exit on most errors
@@ -26,34 +31,27 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man
+# Makefile doesn't support DESTDIR.
+sed -i "s|/usr/local/bin|$PKG/usr/bin|" Makefile
+mkdir -p $PKG/usr/bin
-make
-make install-strip DESTDIR=$PKG
+make OPT="$SLKCFLAGS"
+make install
-( 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
-)
+install -m 0644 -D mp3check.1 $PKG/usr/man/man1/mp3check.1
+gzip -9 $PKG/usr/man/man1/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING ChangeLog FAQ HISTORY INSTALL THANKS TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING $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
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}