diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-13 00:40:02 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:40:02 +0200 |
commit | 96b3cbdcf286d5d0227abdf749c89f7af36094c8 (patch) | |
tree | 29280108a879ff145bcd0eac9cbb19b25f7389a3 /system/ddrescue/ddrescue.SlackBuild | |
parent | 61eadf181c9cc8e42af15a493654e69bf887476f (diff) | |
download | slackbuilds-96b3cbdcf286d5d0227abdf749c89f7af36094c8.tar.gz |
system/ddrescue: Updated for version 1.11
Diffstat (limited to 'system/ddrescue/ddrescue.SlackBuild')
-rw-r--r-- | system/ddrescue/ddrescue.SlackBuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/system/ddrescue/ddrescue.SlackBuild b/system/ddrescue/ddrescue.SlackBuild index 4618de8db7..6c007eb08a 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} |