summaryrefslogtreecommitdiff
path: root/desktop/wmcliphist/wmcliphist.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmcliphist/wmcliphist.SlackBuild')
-rw-r--r--desktop/wmcliphist/wmcliphist.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop/wmcliphist/wmcliphist.SlackBuild b/desktop/wmcliphist/wmcliphist.SlackBuild
index 731f205bf9..b09bba9e89 100644
--- a/desktop/wmcliphist/wmcliphist.SlackBuild
+++ b/desktop/wmcliphist/wmcliphist.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
@@ -36,7 +39,7 @@ cd $PRGNAM-$VERSION
chmod -R u+w,go+r-w,a-s .
chown -R root:root .
-make
+make CFLAGS="$SLKCFLAGS \$(INCLUDES)"
mkdir -p $PKG/usr/bin
install -m 0755 -s $PRGNAM $PKG/usr/bin/$PRGNAM
@@ -50,4 +53,4 @@ 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}