aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-11 22:24:09 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:24:09 +0200
commit6abe3d256037a5bad24f79cd5ac3ae7529ce7dad (patch)
treeec5480cb02a744f2b10f6e82c9311b66c27ebbf8 /libraries
parentdead54f0bd1b09cb348763ae8b028c336e3d316d (diff)
libraries/libwpg: Updated for version 0.1.3
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libwpg/libwpg.SlackBuild22
-rw-r--r--libraries/libwpg/libwpg.info10
2 files changed, 21 insertions, 11 deletions
diff --git a/libraries/libwpg/libwpg.SlackBuild b/libraries/libwpg/libwpg.SlackBuild
index fa28529efe223..dc20360324dac 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
diff --git a/libraries/libwpg/libwpg.info b/libraries/libwpg/libwpg.info
index 8f0a9ebd35286..a2578140b9b7f 100644
--- a/libraries/libwpg/libwpg.info
+++ b/libraries/libwpg/libwpg.info
@@ -1,8 +1,8 @@
PRGNAM="libwpg"
-VERSION="0.1.2"
+VERSION="0.1.3"
HOMEPAGE="http://libwpg.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/libwpg/libwpg-0.1.2.tar.gz"
-MD5SUM="317cee27f380c394c6e4eec02d45cab8"
+DOWNLOAD="http://downloads.sourceforge.net/libwpg/libwpg-0.1.3.tar.bz2"
+MD5SUM="1069ad84fdf65f1c47b63b639137613f"
MAINTAINER="ppr:kut"
-EMAIL="HMWiesinger@gmx.at"
-APPROVED="rworkman"
+EMAIL="pprkut@liwjatan.at"
+APPROVED="David Somero" \ No newline at end of file