summaryrefslogtreecommitdiff
path: root/audio/id3/id3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/id3/id3.SlackBuild')
-rw-r--r--audio/id3/id3.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/audio/id3/id3.SlackBuild b/audio/id3/id3.SlackBuild
index fcbac13347..3c9bf35bb2 100644
--- a/audio/id3/id3.SlackBuild
+++ b/audio/id3/id3.SlackBuild
@@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -31,7 +34,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM
-tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -40,8 +43,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-make
+# Fixup some includes
+patch -p1 < $CWD/id3-0.78-include_string_h.diff
+
+make CFLAGS="$SLKCFLAGS"
# Copying executable and manual to the correct location
mkdir -p $PKG/usr/bin
@@ -63,13 +68,13 @@ cp -a id3.man $PKG/usr/man/man1/id3.1
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGES COPYING INSTALL README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES COPYING INSTALL README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
-
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}