diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-12 17:41:36 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:41:36 +0200 |
commit | 589f0589b83c104e3fe3a86f1191a8ce23575463 (patch) | |
tree | ede063322654d0c1f178ab4b6e6c974fc70e00a2 /libraries/libnotify/libnotify.SlackBuild | |
parent | c7b5f27c3a9cb946ef1a6741561bff2eb7260d42 (diff) | |
download | slackbuilds-589f0589b83c104e3fe3a86f1191a8ce23575463.tar.gz |
libraries/libnotify: Updated for version 0.4.5
Diffstat (limited to 'libraries/libnotify/libnotify.SlackBuild')
-rw-r--r-- | libraries/libnotify/libnotify.SlackBuild | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/libraries/libnotify/libnotify.SlackBuild b/libraries/libnotify/libnotify.SlackBuild index 73510b5aee..67a699f53f 100644 --- a/libraries/libnotify/libnotify.SlackBuild +++ b/libraries/libnotify/libnotify.SlackBuild @@ -2,30 +2,37 @@ # Slackware build script for libnotify # Written by Erik Hanson erik@slackbuilds.org -# Updated for 0.4.4 by Robby Workman <rworkman@slackbuilds.org> PRGNAM=libnotify -VERSION=0.4.4 +VERSION=0.4.5 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) 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 $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -34,12 +41,13 @@ CFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-static=no \ --enable-shared=yes \ - || exit 1 + --build=$ARCH-slackware-linux -make || exit 1 -make install-strip DESTDIR=$PKG || exit 1 +make +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog COPYING README $PKG/usr/doc/$PRGNAM-$VERSION |