diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 22:26:41 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:26:41 +0200 |
commit | c43dba4d1cbab83c56ee7e443a649a6ed099e78f (patch) | |
tree | eab4e3e09778ea81fab9a9bb0f7582bb78e03870 /system/gparted/gparted.SlackBuild | |
parent | 0f8d117a5868b06a9cddb4fdb05634c8037c1d48 (diff) |
system/gparted: Updated for version 0.3.8
Diffstat (limited to 'system/gparted/gparted.SlackBuild')
-rw-r--r-- | system/gparted/gparted.SlackBuild | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/system/gparted/gparted.SlackBuild b/system/gparted/gparted.SlackBuild index 2a6d7db67e2c9..8a502286ad187 100644 --- a/system/gparted/gparted.SlackBuild +++ b/system/gparted/gparted.SlackBuild @@ -3,11 +3,14 @@ # Slackware build script for GParted # Written by Erik Hanson erik@slackbuilds.org +set -eu + PRGNAM=gparted -VERSION=0.3.3 +VERSION=0.3.8 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -17,32 +20,35 @@ if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP +cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || 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 . CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - || exit 1 + --mandir=/usr/man -make || exit 1 -make install DESTDIR=$PKG || exit 1 +make +make install-strip DESTDIR=$PKG -find $PKG | xargs file | egrep "ELF.*executable" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ - $PKG/usr/doc/$PRGNAM-$VERSION + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |