system/lzip: Updated for version 1.8

This commit is contained in:
Barry J. Grundy 2010-05-13 00:40:53 +02:00 committed by David Somero
parent 8e00d356be
commit 3f686466c7
2 changed files with 21 additions and 12 deletions

View file

@ -5,7 +5,7 @@
# Copyright 2008 Barry J. Grundy <http://www.linuxleo.com>
# 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"
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 # 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,14 +84,17 @@ 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 \
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}

View file

@ -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="bgrundy<at>linuxleo.com"
APPROVED="dsomero"