From 3f686466c732a347a968f1cd013745b0243baf88 Mon Sep 17 00:00:00 2001 From: Barry J. Grundy Date: Thu, 13 May 2010 00:40:53 +0200 Subject: system/lzip: Updated for version 1.8 --- system/lzip/lzip.SlackBuild | 25 ++++++++++++++++--------- system/lzip/lzip.info | 8 +++++--- 2 files changed, 21 insertions(+), 12 deletions(-) (limited to 'system/lzip') diff --git a/system/lzip/lzip.SlackBuild b/system/lzip/lzip.SlackBuild index be1ce2270f..711409fe63 100644 --- a/system/lzip/lzip.SlackBuild +++ b/system/lzip/lzip.SlackBuild @@ -5,7 +5,7 @@ # Copyright 2008 Barry J. Grundy # All rights reserved. # -# Revision Date: 12 Feb 2009 +# Revision Date: 15 Oct 2009 # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: @@ -25,7 +25,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=lzip -VERSION=1.4 +VERSION=1.8 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -39,10 +39,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" - elif [ "$ARCH" = "i686" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e # exit on most errors @@ -64,6 +67,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ @@ -80,15 +84,18 @@ make install DESTDIR=$PKG xargs strip --strip-unneeded 2> /dev/null ) -mkdir -p $PKG/usr/man/man1/ -gzip -9c doc/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +( 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 +) rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog INSTALL NEWS README \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS ChangeLog INSTALL NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc -type f -exec chmod 644 {} \; @@ -96,4 +103,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} diff --git a/system/lzip/lzip.info b/system/lzip/lzip.info index 4b408f15b2..4869170ee7 100644 --- a/system/lzip/lzip.info +++ b/system/lzip/lzip.info @@ -1,8 +1,10 @@ PRGNAM="lzip" -VERSION="1.4" +VERSION="1.8" HOMEPAGE="http://www.nongnu.org/lzip/lzip.html" -DOWNLOAD="http://download.savannah.gnu.org/releases-noredirect/lzip/lzip-1.4.tar.gz" -MD5SUM="b7b7b7502c0364995709f5580539dfef" +DOWNLOAD="http://savannah.inetbridge.net/lzip/lzip-1.8.tar.gz" +MD5SUM="eb1f2795ab3f95ccc6c855eac60aefc3" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" MAINTAINER="Barry J. Grundy" EMAIL="bgrundylinuxleo.com" APPROVED="dsomero" -- cgit v1.2.3