summaryrefslogtreecommitdiff
path: root/audio/cd-discid/cd-discid.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cd-discid/cd-discid.SlackBuild')
-rw-r--r--audio/cd-discid/cd-discid.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/audio/cd-discid/cd-discid.SlackBuild b/audio/cd-discid/cd-discid.SlackBuild
index d4f7ede52a..b29840e3ea 100644
--- a/audio/cd-discid/cd-discid.SlackBuild
+++ b/audio/cd-discid/cd-discid.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for cd-discid
# Copyright 2007 Jim Capozzoli <saltmiser@gmail.com>
+# Updated for version 1.4 by Glenn Becker <burningc@sdf.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,7 @@
# Modified by the SlackBuilds.org project
PRGNAM=cd-discid
-VERSION=1.3.1
+VERSION=${VERSION:-1.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,13 +44,13 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686 -DVERSION=\"1.4\""
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686 -DVERSION=\"1.4\""
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC -DVERSION=\"1.4\""
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
@@ -61,7 +62,8 @@ set -e
mkdir -p $TMP $PKG $OUTPUT
rm -rf $PKG $TMP/$PRGNAM-$VERSION
cd $TMP
-tar xvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz
+mv $CWD/${PRGNAM}-${VERSION}.tar.gz $CWD/${PRGNAM}-${VERSION}.orig.tar.gz
+tar xvf $CWD/${PRGNAM}-${VERSION}.orig.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \