aboutsummaryrefslogtreecommitdiff
path: root/multimedia/cuetools/cuetools.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/cuetools/cuetools.SlackBuild')
-rw-r--r--multimedia/cuetools/cuetools.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/multimedia/cuetools/cuetools.SlackBuild b/multimedia/cuetools/cuetools.SlackBuild
index ef02b38b458f..2f277380b379 100644
--- a/multimedia/cuetools/cuetools.SlackBuild
+++ b/multimedia/cuetools/cuetools.SlackBuild
@@ -18,7 +18,7 @@
PRGNAM=cuetools
VERSION=${VERSION:-1.3.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -48,7 +48,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -63,6 +63,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Patching the cuetag script in extras with patch from Archlinux
+# Thanks to Gilcio Amaral-Martins <gilcio.amaral@gmail.com> for the suggestion
+patch -Np0 < $CWD/cuetag.patch
+ sed -i -e 's/--import-vc-from/--import-tags-from/' \
+ -e 's/--remove-vc-all/--remove-all-tags/' extras/cuetag.sh
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -73,7 +79,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
-make
+make
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
@@ -82,6 +88,8 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+install -m755 extras/cuetag.sh $PKG/usr/bin/cuetag
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \