summaryrefslogtreecommitdiff
path: root/audio/cd-discid/cd-discid.SlackBuild
diff options
context:
space:
mode:
authorGlenn Becker <burningc@sdf.org>2014-06-23 01:00:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-23 01:00:11 +0700
commitd866ad82106a91f9a99d845c380a6df913af568f (patch)
tree67c29e548cd5dd6b7252f9c287902c5ea4753de6 /audio/cd-discid/cd-discid.SlackBuild
parent03a2c5d9f982cddd82e780c39c6485e0d0d520f5 (diff)
downloadslackbuilds-d866ad82106a91f9a99d845c380a6df913af568f.tar.gz
audio/cd-discid: Updated for version 1.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 . \