aboutsummaryrefslogtreecommitdiff
path: root/system/zisofs-tools/zisofs-tools.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-13 00:42:40 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:42:40 +0200
commit4c8473ac5a945bc15198eeb50f7f0d00d9913d03 (patch)
tree2236f906f48ce948aa09e99f88b8c44927ca9e48 /system/zisofs-tools/zisofs-tools.SlackBuild
parent87677a3e17c61304aafab418e7c0c6449a5620dd (diff)
system/zisofs-tools: Updated for version 1.0.8
Diffstat (limited to 'system/zisofs-tools/zisofs-tools.SlackBuild')
-rw-r--r--system/zisofs-tools/zisofs-tools.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/system/zisofs-tools/zisofs-tools.SlackBuild b/system/zisofs-tools/zisofs-tools.SlackBuild
index 6193d912f1d0..74506b330743 100644
--- a/system/zisofs-tools/zisofs-tools.SlackBuild
+++ b/system/zisofs-tools/zisofs-tools.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for zisofs-tools
-# Copyright 2006-2008 Robby Workman, Northport, Alabama, USA
+# Copyright 2006-2009 Robby Workman, Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -35,8 +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
@@ -53,6 +58,7 @@ chmod -R a-s,u+w,go+r-w .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
@@ -60,8 +66,10 @@ make
make INSTALLROOT=$PKG install
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -70,11 +78,13 @@ make INSTALLROOT=$PKG install
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGES COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ CHANGES COPYING INSTALL README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}