aboutsummaryrefslogtreecommitdiff
path: root/audio/cd-discid/cd-discid.SlackBuild
diff options
context:
space:
mode:
authorJim Capozzoli <saltmiser@gmail.com>2010-05-12 17:36:52 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:36:52 +0200
commitc66ebcebeb4de3ad83a640d3f018db40240d05d2 (patch)
tree9d2fa43dd3f867991f582bd0864bf6d2b3a028c3 /audio/cd-discid/cd-discid.SlackBuild
parent2170555a9cf150ba28cbf322b767743898386c45 (diff)
audio/cd-discid: Updated for version 0.9
Diffstat (limited to 'audio/cd-discid/cd-discid.SlackBuild')
-rw-r--r--audio/cd-discid/cd-discid.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/audio/cd-discid/cd-discid.SlackBuild b/audio/cd-discid/cd-discid.SlackBuild
index c93c1edb3316f..ef2619645480a 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