diff options
Diffstat (limited to 'audio/cd-discid/cd-discid.SlackBuild')
-rw-r--r-- | audio/cd-discid/cd-discid.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/audio/cd-discid/cd-discid.SlackBuild b/audio/cd-discid/cd-discid.SlackBuild index c93c1edb33..ef26196454 100644 --- a/audio/cd-discid/cd-discid.SlackBuild +++ b/audio/cd-discid/cd-discid.SlackBuild @@ -1,4 +1,5 @@ #!/bin/bash + # Slackware build script for cd-discid # Copyright 2007 Jim Capozzoli <saltmiser@gmail.com> @@ -23,15 +24,14 @@ # Modified by the SlackBuilds.org project -set -e - PRGNAM=cd-discid VERSION=0.9 -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -39,14 +39,16 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -rm -rf $TMP/$PRGNAM-$VERSION +set -e +mkdir -p $TMP $PKG $OUTPUT +rm -rf $PKG $TMP/$PRGNAM-$VERSION cd $TMP -tar -xzvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz +tar xvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -59,8 +61,8 @@ chmod -R u+w,go+r-w,a-s . # ownership setting has to be removed for that to work. --rworkman patch -p1 < $CWD/Makefile.diff -CFLAGS="$SLKCFLAGS" make || exit -make install DESTDIR=$PKG || exit +make CFLAGS+="$SLKCFLAGS" +make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING README changelog $PKG/usr/doc/$PRGNAM-$VERSION |