diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-11 22:24:09 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:24:09 +0200 |
commit | 6abe3d256037a5bad24f79cd5ac3ae7529ce7dad (patch) | |
tree | ec5480cb02a744f2b10f6e82c9311b66c27ebbf8 /libraries/libwpg/libwpg.SlackBuild | |
parent | dead54f0bd1b09cb348763ae8b028c336e3d316d (diff) | |
download | slackbuilds-6abe3d256037a5bad24f79cd5ac3ae7529ce7dad.tar.gz |
libraries/libwpg: Updated for version 0.1.3
Diffstat (limited to 'libraries/libwpg/libwpg.SlackBuild')
-rw-r--r-- | libraries/libwpg/libwpg.SlackBuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/libraries/libwpg/libwpg.SlackBuild b/libraries/libwpg/libwpg.SlackBuild index fa28529efe..dc20360324 100644 --- a/libraries/libwpg/libwpg.SlackBuild +++ b/libraries/libwpg/libwpg.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libwpg -# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libwpg -VERSION=0.1.2 +VERSION=0.1.3 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,6 +37,8 @@ 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 set -e @@ -45,10 +47,15 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 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" \ @@ -56,12 +63,15 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --disable-static + --disable-static \ + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG -mv $PKG/usr/share/doc $PKG/usr +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/libwpg/* $PKG/usr/doc/$PRGNAM-$VERSION/ cp -a AUTHORS ChangeLog COPYING README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -rf $PKG/usr/share |