aboutsummaryrefslogtreecommitdiff
path: root/libraries/slv2/slv2.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:33:35 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:33:35 +0200
commit30368cbce79897c781f09e9574e1977917b6e04a (patch)
treebf1756d6542a557d9c4f64f31dad69c3a917dc76 /libraries/slv2/slv2.SlackBuild
parentf5ad17ac63a9184c59d719ead013340b925a9f49 (diff)
libraries/slv2: Updated for version 0.6.6
Diffstat (limited to 'libraries/slv2/slv2.SlackBuild')
-rw-r--r--libraries/slv2/slv2.SlackBuild20
1 files changed, 16 insertions, 4 deletions
diff --git a/libraries/slv2/slv2.SlackBuild b/libraries/slv2/slv2.SlackBuild
index f080151d3e46b..9b98f2d2770d4 100644
--- a/libraries/slv2/slv2.SlackBuild
+++ b/libraries/slv2/slv2.SlackBuild
@@ -23,9 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=slv2
-VERSION=0.6.2
+VERSION=0.6.6
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -60,13 +63,22 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./waf configure \
--prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--htmldir=/usr/doc/$PRGNAM-$VERSION
./waf build
./waf install --destdir=$PKG
-rm -rf $PKG/usr/man # No man pages are installed, but the dirs are...
+if [ "$LIBDIRSUFFIX" != "" ]; then
+ sed -i "s,/lib,/lib$LIBDIRSUFFIX," \
+ $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc
+fi
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL README \
@@ -77,4 +89,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}