diff options
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/cuetools/cuetag.patch | 38 | ||||
-rw-r--r-- | multimedia/cuetools/cuetools.SlackBuild | 14 |
2 files changed, 49 insertions, 3 deletions
diff --git a/multimedia/cuetools/cuetag.patch b/multimedia/cuetools/cuetag.patch new file mode 100644 index 0000000000000..ffda639c28a7a --- /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 ef02b38b458f0..2f277380b3799 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 \ |