summaryrefslogtreecommitdiff
path: root/libraries/libgnomeprintui/libgnomeprintui.SlackBuild
diff options
context:
space:
mode:
authorMartin Lefebvre <dadexter@sekurity.com>2010-05-11 22:23:58 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:23:58 +0200
commit15b1188858dfb50d20f76cdda84d14cfda60ec24 (patch)
treebfdf08aff838b2ba005b20509813546d48563e65 /libraries/libgnomeprintui/libgnomeprintui.SlackBuild
parentd091b79e5d1f1dd7eec6fbb2f29d22981c1efd10 (diff)
downloadslackbuilds-15b1188858dfb50d20f76cdda84d14cfda60ec24.tar.gz
libraries/libgnomeprintui: Updated for version 2.18.0
Diffstat (limited to 'libraries/libgnomeprintui/libgnomeprintui.SlackBuild')
-rw-r--r--libraries/libgnomeprintui/libgnomeprintui.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/libraries/libgnomeprintui/libgnomeprintui.SlackBuild b/libraries/libgnomeprintui/libgnomeprintui.SlackBuild
index d8a78b88f8..816f2bb601 100644
--- a/libraries/libgnomeprintui/libgnomeprintui.SlackBuild
+++ b/libraries/libgnomeprintui/libgnomeprintui.SlackBuild
@@ -29,6 +29,7 @@ VERSION=2.18.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -36,8 +37,10 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
rm -rf $PKG
@@ -47,7 +50,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -57,6 +64,8 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--enable-static=no \
--enable-gtk-doc=yes \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux \
|| exit 1
make || exit 1