From 96b3cbdcf286d5d0227abdf749c89f7af36094c8 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Thu, 13 May 2010 00:40:02 +0200 Subject: system/ddrescue: Updated for version 1.11 --- system/ddrescue/ddrescue.SlackBuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'system/ddrescue/ddrescue.SlackBuild') diff --git a/system/ddrescue/ddrescue.SlackBuild b/system/ddrescue/ddrescue.SlackBuild index 4618de8db7219..6c007eb08a1dc 100644 --- a/system/ddrescue/ddrescue.SlackBuild +++ b/system/ddrescue/ddrescue.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ddrescue -VERSION=1.10 +VERSION=1.11 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -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 @@ -54,8 +57,10 @@ chmod -R u+w,go+r-w,a-s . ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ + --mandir=/usr/man \ --infodir=/usr/info \ --build=$ARCH-slackware-linux \ CFLAGS="-Wall -W $SLKCFLAGS" \ @@ -67,6 +72,11 @@ make install-strip DESTDIR=$PKG rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/* +( 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 NEWS README \ $PKG/usr/doc/$PRGNAM-$VERSION @@ -76,4 +86,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} -- cgit v1.2.3