multimedia/cuetools: Include the cuetag script in extras.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
2b2633a479
commit
1f6ec67908
|
@ -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"
|
||||
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue