system/lbzip2: Updated for version 0.20

This commit is contained in:
Erik Hanson 2010-05-13 00:40:50 +02:00 committed by Robby Workman
parent 06c4fd7a92
commit 5431c4f003
3 changed files with 40 additions and 12 deletions

View file

@ -1,2 +1,2 @@
A multi-threaded bzip2/bunzip2 filter that doesn't depend on the lseek()
system call and so isn't restricted to regular files.
lbzip2 is a multi-threaded bzip2/bunzip2 filter that doesn't depend on the
lseek() system call and so isn't restricted to regular files.

View file

@ -1,10 +1,29 @@
#!/bin/sh
#
# Slackware build script for lbzip2
# Written by Erik Hanson erik@slackbuilds.org
#
# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lbzip2
VERSION=0.14
VERSION=0.20
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -16,8 +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 -eu
@ -25,9 +49,9 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
cd $PRGNAM
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@ -36,7 +60,7 @@ find . \
-exec chmod 644 {} \;
# Swap in our CFLAGS
sed -i "s/-O3/$SLKCFLAGS/" Makefile
sed -i "s/-O2/$SLKCFLAGS/" Makefile
# Build
make
@ -46,6 +70,8 @@ install -D -s lbzip2 $PKG/usr/bin/lbzip2
install -D lbzip2.1 $PKG/usr/man/man1/lbzip2.1
gzip -9 $PKG/usr/man/man1/lbzip2.1
( cd $PKG/usr/bin ; ln -s lbzip2 lbunzip2 ; ln -s lbzip2 lbzcat )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog GPL-2.0 GPL-3.0 README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@ -54,4 +80,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="lbzip2"
VERSION="0.14"
VERSION="0.20"
HOMEPAGE="http://phptest11.atw.hu/"
DOWNLOAD="http://slackbuilds.org/sources/12.2/lbzip2-0.14.tar.gz"
MD5SUM="1c9049642cbaafb5d894ee17b002a321"
DOWNLOAD="http://lacos.web.elte.hu/pub/lbzip2/lbzip2-0.20.tar.gz"
MD5SUM="9f5479de40f928e77062a62c8a74d831"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
APPROVED="rworkman"