You are not logged in.
PBZIP2 is a parallel implementation of the bzip2 block-sorting file compressor that uses pthreads and achieves near-linear speedup on SMP machines. The output of this version is fully compatible with bzip2 v1.0.2 or newer (ie: anything compressed with pbzip2 can be decompressed with bzip2).
PKGBUILD by anakin
Last edited by judfilm (2007-06-04 14:43:44)
Offline
Just finished the initial release of the PKGBUILD, grab it here.
Please let me know of any problems or further requests.
PS: Get me some single core packages to build too, I still didn't get a multi core machine.
Last edited by anakin (2007-06-04 10:30:34)
www.geekslot.com - a place where peculiar people fit
Offline
Hi Anakin,
Thank you for your great work on the PKGBUILD! PBZIP2 works great - nice speed up.
Offline
You're welcome.
Are you running x86_64? If so, did it build flawlessly?
www.geekslot.com - a place where peculiar people fit
Offline
i had played in the past with it coming to this one replacing the bzip2 bins:
# $Id: PKGBUILD,v 1.18 2007/02/02 11:33:20 andyrtr Exp $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
pkgname=pbzip2
pkgver=1.0
pkgrel=1
pkgdesc="parallel implementation of bzip2"
arch=('x86_64')
license=('custom')
url="http://compression.ca/pbzip2/"
depends=('gcc')
source=(http://compression.ca/$pkgname/$pkgname-$pkgver.tar.gz
http://www.bzip.org/1.0.4/bzip2-1.0.4.tar.gz)
md5sums=('a8923165b97e665b9d1e85f1566700e9')
provides=('bzip2')
conflicts=('bzip2')
replaces=('bzip2')
build() {
mkdir -p $startdir/pkg/bin
mkdir -p $startdir/pkg/lib
mkdir -p $startdir/pkg/usr/lib
mkdir -p $startdir/pkg/usr/include
mkdir -p $startdir/pkg/usr/share/man/man1
mkdir -p $startdir/pkg/usr/share/licenses/custom/$pkgname
cd $startdir/src/bzip2-1.0.4
# add large-file support
sed -e 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' -i ./Makefile-libbz2_so
make -f Makefile-libbz2_so || return 1
make libbz2.a || return 1
ln -s libbz2.so.$pkgver libbz2.so
cp -a libbz2.so* $startdir/pkg/lib
cp libbz2.a $startdir/pkg/usr/lib
cp bzlib.h $startdir/pkg/usr/include
cd $startdir/pkg/usr/lib
ln -sf ../../lib/libbz2.s
cd $startdir/src/$pkgname-$pkgver
sed -i -e "s/ -O3 / $CFLAGS /" Makefile
make
cp pbzip2 $startdir/pkg/bin/pbzip2
cp pbzip2.1 $startdir/pkg/usr/share/man/man1/pbzip2.1
cp COPYING $startdir/pkg/usr/share/licenses/custom/$pkgname/license.txt
cd $startdir/pkg/bin
ln -sf pbzip2 bzip2
ln -sf pbzip2 bunzip2
ln -sf pbzip2 bzcat
ln -sf pbzip2 bzip2recover
cd $startdir/pkg/usr/share/man/man1
ln -sf pbzip2.1 bzip2.1
ln -sf pbzip2.1 bunzip2.1
ln -sf pbzip2.1 bzcat.1
ln -sf pbzip2.1 bzip2recover.1
}
as it won't work in pipes it's quiet useless as no tar.bz2 are allowed. that's why i had stopped working on it.
Offline
as it won't work in pipes it's quiet useless as no tar.bz2 are allowed. that's why i had stopped working on it.
Didn't know that, it's certainly a must. Guess I'll mail that as a feature request to the developer.
www.geekslot.com - a place where peculiar people fit
Offline
Input from stdin and pipes are already on the TODO list according to pbzip2's website.
www.geekslot.com - a place where peculiar people fit
Offline