aboutsummaryrefslogtreecommitdiff
path: root/audio/id3/id3.SlackBuild
diff options
context:
space:
mode:
authorCezary M. Kruk <c.kruk@bigfoot.com>2010-05-13 00:21:18 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:21:18 +0200
commit2ff64854a8e440e032c642ccdf44c7e24e86dc1b (patch)
tree01b5b1e75835273a4d0564262208c427aa7cb488 /audio/id3/id3.SlackBuild
parentff7bd32c5ddd6a6baff18b6845ee13af2d64b413 (diff)
audio/id3: Updated for version 0.78
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 fcbac13347e97..3c9bf35bb2cf7 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}