summaryrefslogtreecommitdiff
path: root/desktop/google-gadgets-for-linux/google-gadgets-for-linux.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/google-gadgets-for-linux/google-gadgets-for-linux.SlackBuild')
-rw-r--r--desktop/google-gadgets-for-linux/google-gadgets-for-linux.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/desktop/google-gadgets-for-linux/google-gadgets-for-linux.SlackBuild b/desktop/google-gadgets-for-linux/google-gadgets-for-linux.SlackBuild
index aeaf6c610a..ead159ba65 100644
--- a/desktop/google-gadgets-for-linux/google-gadgets-for-linux.SlackBuild
+++ b/desktop/google-gadgets-for-linux/google-gadgets-for-linux.SlackBuild
@@ -19,7 +19,7 @@
# Modified by SlackBuilds.org
PRGNAM=google-gadgets-for-linux
-VERSION=0.10.5
+VERSION=0.11.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -31,10 +31,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 -eu
@@ -67,11 +70,12 @@ CFLAGS="$SLKCFLAGS $EXTRA_INCLUDES" \
CXXFLAGS="$SLKCFLAGS $EXTRA_INCLUDES" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--mandir=/usr/man \
--disable-static \
- --with-browser-plugins-dir=/usr/lib/mozilla/plugins \
+ --with-browser-plugins-dir=/usr/lib$LIBDIRSUFFIX/mozilla/plugins \
--build=$ARCH-slackware-linux
make
@@ -90,4 +94,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}