From 1f6ec679088392f5ebb942f7b546ef7158f5b32f Mon Sep 17 00:00:00 2001 From: ArTourter Date: Sun, 16 Dec 2012 17:43:18 -0500 Subject: multimedia/cuetools: Include the cuetag script in extras. Signed-off-by: dsomero --- multimedia/cuetools/cuetag.patch | 38 +++++++++++++++++++++++++++++++++ multimedia/cuetools/cuetools.SlackBuild | 14 +++++++++--- 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 multimedia/cuetools/cuetag.patch (limited to 'multimedia/cuetools') diff --git a/multimedia/cuetools/cuetag.patch b/multimedia/cuetools/cuetag.patch new file mode 100644 index 0000000000..ffda639c28 --- /dev/null +++ b/multimedia/cuetools/cuetag.patch @@ -0,0 +1,38 @@ +--- extras/cuetag.sh 2006-09-06 14:24:47.000000000 -0400 ++++ extras/cuetag.sh 2007-01-26 00:13:23.000000000 -0500 +@@ -63,7 +63,7 @@ + (for field in $fields; do + value="" + for conv in `eval echo \\$$field`; do +- value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file` ++ value=`$CUEPRINT -n $1 -t "$conv\n" "$cue_file"` + + if [ -n "$value" ]; then + echo "$field=$value" +@@ -96,7 +96,7 @@ + for field in $fields; do + value="" + for conv in `eval echo \\$$field`; do +- value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file` ++ value=`$CUEPRINT -n $1 -t "$conv\n" "$cue_file"` + + if [ -n "$value" ]; then + break +@@ -141,14 +141,14 @@ + cue_file=$1 + shift + +- ntrack=`cueprint -d '%N' $cue_file` ++ ntrack=`cueprint -d '%N' "$cue_file"` + trackno=1 + + if [ $# -ne $ntrack ]; then + echo "warning: number of files does not match number of tracks" + fi + +- for file in $@; do ++ for file in "$@"; do + case $file in + *.[Ff][Ll][Aa][Cc]) + vorbis $trackno "$file" + diff --git a/multimedia/cuetools/cuetools.SlackBuild b/multimedia/cuetools/cuetools.SlackBuild index ef02b38b45..2f277380b3 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 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 \ -- cgit v1.2.3