diff options
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?/* |