summaryrefslogtreecommitdiff
path: root/system/gparted
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-11 22:26:41 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:26:41 +0200
commitc43dba4d1cbab83c56ee7e443a649a6ed099e78f (patch)
treeeab4e3e09778ea81fab9a9bb0f7582bb78e03870 /system/gparted
parent0f8d117a5868b06a9cddb4fdb05634c8037c1d48 (diff)
downloadslackbuilds-c43dba4d1cbab83c56ee7e443a649a6ed099e78f.tar.gz
system/gparted: Updated for version 0.3.8
Diffstat (limited to 'system/gparted')
-rw-r--r--system/gparted/doinst.sh6
-rw-r--r--system/gparted/gparted.SlackBuild22
-rw-r--r--system/gparted/gparted.info8
3 files changed, 20 insertions, 16 deletions
diff --git a/system/gparted/doinst.sh b/system/gparted/doinst.sh
index 06e65784cd..3857649f50 100644
--- a/system/gparted/doinst.sh
+++ b/system/gparted/doinst.sh
@@ -1,5 +1,3 @@
-
-if [ -x usr/bin/update-desktop-database ]; then
- usr/bin/update-desktop-database usr/share/applications &> /dev/null
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
fi
-
diff --git a/system/gparted/gparted.SlackBuild b/system/gparted/gparted.SlackBuild
index 2a6d7db67e..8a502286ad 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
diff --git a/system/gparted/gparted.info b/system/gparted/gparted.info
index 8d361af583..03fe5c4095 100644
--- a/system/gparted/gparted.info
+++ b/system/gparted/gparted.info
@@ -1,8 +1,8 @@
PRGNAM="gparted"
-VERSION="0.3.3"
+VERSION="0.3.8"
HOMEPAGE="http://gparted.sourceforge.net/"
-DOWNLOAD="http://dl.sourceforge.net/sourceforge/gparted/gparted-0.3.3.tar.bz2"
-MD5SUM="f3d16ccfda72fa1dac9fa1ff9ded2c42"
+DOWNLOAD="http://downloads.sourceforge.net/gparted/gparted-0.3.8.tar.bz2"
+MD5SUM="7c890472168b0b5e5f353b445758ab3f"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
-APPROVED="BP{k},rworkman"
+APPROVED="David Somero" \ No newline at end of file