diff options
Diffstat (limited to 'system/ddrescue/ddrescue.SlackBuild')
-rw-r--r-- | system/ddrescue/ddrescue.SlackBuild | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/system/ddrescue/ddrescue.SlackBuild b/system/ddrescue/ddrescue.SlackBuild index f444ded6a6..4618de8db7 100644 --- a/system/ddrescue/ddrescue.SlackBuild +++ b/system/ddrescue/ddrescue.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ddrescue -# Copyright 2007-2008 Heinz Wiesinger <pprkut@liwjatan.at> +# Copyright 2007-2009 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=ddrescue -VERSION=1.9 +VERSION=1.10 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.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -55,6 +57,7 @@ chmod -R u+w,go+r-w,a-s . --sysconfdir=/etc \ --localstatedir=/var \ --infodir=/usr/info \ + --build=$ARCH-slackware-linux \ CFLAGS="-Wall -W $SLKCFLAGS" \ CXXFLAGS="-Wall -W $SLKCFLAGS" @@ -62,10 +65,10 @@ make make install-strip DESTDIR=$PKG rm -f $PKG/usr/info/dir -gzip -9 $PKG/usr/info/*.info* +gzip -9 $PKG/usr/info/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \ +cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |