diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-12 17:46:23 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:46:23 +0200 |
commit | 237a2c808adb0423898164183e8da28c0a7ee1ca (patch) | |
tree | 79e2bf11032270c04144ed77f7a4f68a3569b045 /system/xbindkeys/xbindkeys.SlackBuild | |
parent | a5f8f4546ac3e6a457bed6ed905aac01e292fa10 (diff) | |
download | slackbuilds-237a2c808adb0423898164183e8da28c0a7ee1ca.tar.gz |
system/xbindkeys: Updated for version 1.8.3
Diffstat (limited to 'system/xbindkeys/xbindkeys.SlackBuild')
-rw-r--r-- | system/xbindkeys/xbindkeys.SlackBuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/system/xbindkeys/xbindkeys.SlackBuild b/system/xbindkeys/xbindkeys.SlackBuild index 9cfaec154b..1949c441e2 100644 --- a/system/xbindkeys/xbindkeys.SlackBuild +++ b/system/xbindkeys/xbindkeys.SlackBuild @@ -5,7 +5,7 @@ # Modified by the SlackBuilds.org project PRGNAM=xbindkeys -VERSION=1.8.2 +VERSION=1.8.3 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -15,20 +15,25 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +set -eu + 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 rm -rf $PKG mkdir -p $PKG $TMP $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -37,12 +42,13 @@ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --localstatedir=/var \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --mandir=/usr/man \ - || exit 1 + --build=$ARCH-slackware-linux -make || exit 1 -make install-strip DESTDIR=$PKG || exit 1 +make +make install-strip DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/* |