diff options
Diffstat (limited to 'system/encfs/encfs.SlackBuild')
-rw-r--r-- | system/encfs/encfs.SlackBuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/system/encfs/encfs.SlackBuild b/system/encfs/encfs.SlackBuild index dd7181602ecff..2f5c82caba079 100644 --- a/system/encfs/encfs.SlackBuild +++ b/system/encfs/encfs.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for encfs -# Copyright 2007-2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# Copyright 2007-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=encfs -VERSION=1.4.1.1 +VERSION=1.5 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,7 +47,7 @@ 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-2.tgz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -57,12 +59,17 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --disable-static + --disable-static \ + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG -gzip -9 $PKG/usr/man/man?/*.? +( 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 ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL README \ |