diff options
Diffstat (limited to 'testing/bzip2/PKGBUILD')
-rw-r--r-- | testing/bzip2/PKGBUILD | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/testing/bzip2/PKGBUILD b/testing/bzip2/PKGBUILD deleted file mode 100644 index 00bfaa834..000000000 --- a/testing/bzip2/PKGBUILD +++ /dev/null @@ -1,69 +0,0 @@ -# $Id: PKGBUILD 138430 2011-09-22 23:27:25Z dan $ -# Maintainer: -# Contributor: Judd <jvinet@zeroflux.org> - -pkgname=bzip2 -pkgver=1.0.6 -pkgrel=2 -pkgdesc="A high-quality data compression program" -arch=('i686' 'x86_64') -license=('custom') -url="http://sources.redhat.com/bzip2" -groups=('base') -depends=('glibc') -source=(http://www.bzip.org/$pkgver/bzip2-$pkgver.tar.gz - bzip2-1.0.4-bzip2recover.patch) -md5sums=('00b516f4704d4a7cb50a1d97e6e8e15b' - '8a8bca02bdeaf2fd8913aeb549577e7e') - -build() { - cd "$srcdir/$pkgname-$pkgver" - - # add large-file support - sed -e 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' -i ./Makefile-libbz2_so - - # use our optimization - sed -i "s|-O2|${CFLAGS}|g" Makefile - sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so - - patch -Np1 < ../bzip2-1.0.4-bzip2recover.patch - - make -f Makefile-libbz2_so - make bzip2 bzip2recover libbz2.a -} - -check() { - cd "$srcdir/$pkgname-$pkgver" - make test -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - - install -dm755 $pkgdir/bin - install -m755 bzip2-shared $pkgdir/bin/bzip2 - install -m755 bzip2recover $pkgdir/bin - ln -sf bzip2 $pkgdir/bin/bunzip2 - ln -sf bzip2 $pkgdir/bin/bzcat - - install -dm755 $pkgdir/usr/bin - install -m755 bzdiff bzgrep bzmore $pkgdir/usr/bin - - install -Dm755 libbz2.so.1.0.6 $pkgdir/lib/libbz2.so.1.0.6 - ln -s libbz2.so.1.0.6 $pkgdir/lib/libbz2.so - ln -s libbz2.so.1.0.6 $pkgdir/lib/libbz2.so.1 - ln -s libbz2.so.1.0.6 $pkgdir/lib/libbz2.so.1.0 - - install -Dm644 libbz2.a ${pkgdir}/usr/lib/libbz2.a - ln -sf ../../lib/libbz2.so ${pkgdir}/usr/lib/libbz2.so - - install -Dm644 bzlib.h $pkgdir/usr/include/bzlib.h - - install -Dm644 bzip2.1 $pkgdir/usr/share/man/man1/bzip2.1 - ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bunzip2.1 - ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bzcat.1 - ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bzip2recover.1 - - install -Dm644 $srcdir/${pkgname}-${pkgver}/LICENSE \ - $pkgdir/usr/share/licenses/${pkgname}/LICENSE -} |