summaryrefslogtreecommitdiff
path: root/audio/last.fm/last.fm.SlackBuild
diff options
context:
space:
mode:
authorMichael Johnson <youngmug@animeneko.net>2010-05-13 00:21:26 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:21:26 +0200
commit1da1e2eb205a60f5c6bd9ec2ec8b4982e7aec437 (patch)
treeab1d4a1fdf54b509f9a20b53017245786a74e85e /audio/last.fm/last.fm.SlackBuild
parent5b3c392533b201ceb792ce4dddece0753217f481 (diff)
downloadslackbuilds-1da1e2eb205a60f5c6bd9ec2ec8b4982e7aec437.tar.gz
audio/last.fm: Updated for version 1.5.1.31879
Diffstat (limited to 'audio/last.fm/last.fm.SlackBuild')
-rw-r--r--audio/last.fm/last.fm.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/audio/last.fm/last.fm.SlackBuild b/audio/last.fm/last.fm.SlackBuild
index 3328db50cb..b84f839e55 100644
--- a/audio/last.fm/last.fm.SlackBuild
+++ b/audio/last.fm/last.fm.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 # Exit on most errors
@@ -40,23 +43,23 @@ patch -p1 < $CWD/patches/no-fingerprint-lib.diff
patch -p1 < $CWD/patches/reduce-linkage.diff
patch -p1 < $CWD/patches/volumeslider_h-qt45.patch
-lrelease-qt4 i18n/*.ts
+lrelease i18n/*.ts
-qmake-qt4 -config release
+qmake -config release INCLUDEPATH="/usr/lib${LIBDIRSUFFIX}/glib-2.0/include "
make
#Last.fm doesn't have a nice installer, so we need to package it manually.
-mkdir -p $PKG/usr/lib/$PRGNAM/i18n $PKG/usr/bin $PKG/usr/man/man1 \
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/i18n $PKG/usr/bin $PKG/usr/man/man1 \
$PKG/usr/share/applications $PKG/usr/share/pixmaps
-cp -R bin/* $PKG/usr/lib/$PRGNAM
-cat $CWD/$PRGNAM.script > $PKG/usr/bin/$PRGNAM
+cp -R bin/* $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM
+sed -e "s/@LIBDIR@/lib${LIBDIRSUFFIX}/" $CWD/$PRGNAM.script > $PKG/usr/bin/$PRGNAM
chmod +x $PKG/usr/bin/$PRGNAM
-install -m 644 i18n/*.qm $PKG/usr/lib/$PRGNAM/i18n
+install -m 644 i18n/*.qm $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/i18n
gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-( cd $PKG/usr/share/pixmaps ; ln -s ../../lib/last.fm/data/app_55.png lastfm.png )
+( cd $PKG/usr/share/pixmaps ; ln -s ../../lib${LIBDIRSUFFIX}/last.fm/data/app_55.png lastfm.png )
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
@@ -74,4 +77,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}