summaryrefslogtreecommitdiff
path: root/graphics/qtpfsgui/qtpfsgui.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/qtpfsgui/qtpfsgui.SlackBuild')
-rw-r--r--graphics/qtpfsgui/qtpfsgui.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/graphics/qtpfsgui/qtpfsgui.SlackBuild b/graphics/qtpfsgui/qtpfsgui.SlackBuild
index c8aa086a97..044d69815d 100644
--- a/graphics/qtpfsgui/qtpfsgui.SlackBuild
+++ b/graphics/qtpfsgui/qtpfsgui.SlackBuild
@@ -17,10 +17,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
@@ -38,7 +41,7 @@ chmod -R u+w,go+r-w,a-s .
cat $CWD/qtpfsgui-1.9.2-trunk.patch | patch -p2
lrelease project.pro
-qmake-qt4 \
+qmake \
INSTALL_ROOT=$PKG \
PREFIX=/usr \
QMAKE_CFLAGS="$SLKCFLAGS" \
@@ -60,4 +63,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}