diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-30 23:38:39 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-30 23:38:39 (GMT) |
commit | 5c3ec36a21a35f539465c97aaf00aa0b104dd0d3 (patch) | |
tree | 79f94fb4ebd5246e37e8ba8451eca36019c36d37 /abs/core | |
parent | f8e22efeb03466e92cdb35e5a075a47a9d1430dd (diff) | |
download | linhes_pkgbuild-5c3ec36a21a35f539465c97aaf00aa0b104dd0d3.zip linhes_pkgbuild-5c3ec36a21a35f539465c97aaf00aa0b104dd0d3.tar.gz linhes_pkgbuild-5c3ec36a21a35f539465c97aaf00aa0b104dd0d3.tar.bz2 |
bzip2: upgrade
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/bzip2/PKGBUILD | 80 |
1 files changed, 46 insertions, 34 deletions
diff --git a/abs/core/bzip2/PKGBUILD b/abs/core/bzip2/PKGBUILD index bd3b1c2..cabf1af 100644 --- a/abs/core/bzip2/PKGBUILD +++ b/abs/core/bzip2/PKGBUILD @@ -1,47 +1,59 @@ -# $Id: PKGBUILD 7561 2008-08-02 22:14:50Z jgc $ -# Maintainer: Judd <jvinet@zeroflux.org> +# $Id: PKGBUILD 91051 2010-09-21 12:28:55Z ibiru $ +# Maintainer: +# Contributor: Judd <jvinet@zeroflux.org> pkgname=bzip2 -pkgver=1.0.5 -pkgrel=12 +pkgver=1.0.6 +pkgrel=1 pkgdesc="A high-quality data compression program" -arch=(i686 x86_64) +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) +md5sums=('00b516f4704d4a7cb50a1d97e6e8e15b') build() { - cd $startdir/src/$pkgname-$pkgver - mkdir -p $startdir/pkg/bin $startdir/pkg/usr/share/man/man1 - mkdir -p $startdir/pkg/usr/include $startdir/pkg/usr/lib - mkdir -p $startdir/pkg/lib + cd $srcdir/$pkgname-$pkgver + # add large-file support sed -e 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' -i ./Makefile-libbz2_so - make -f Makefile-libbz2_so || return 1 - make bzip2recover libbz2.a || return 1 - ln -s libbz2.so.1.0.4 libbz2.so - ln -s libbz2.so.1.0.4 libbz2.so.1 - cp bzip2-shared $startdir/pkg/bin/bzip2 - cp bzip2recover $startdir/pkg/bin - cp bzip2.1 $startdir/pkg/usr/share/man/man1 - mkdir -p $startdir/pkg/usr/include - cp bzlib.h $startdir/pkg/usr/include - cp -a libbz2.so* $startdir/pkg/lib - rm -f $startdir/pkg/usr/lib/libbz2.a - cp libbz2.a $startdir/pkg/usr/lib - cd $startdir/pkg/usr/lib - ln -sf ../../lib/libbz2.so - cd $startdir/pkg/bin - ln -sf bzip2 bunzip2 - ln -sf bzip2 bzcat - cd $startdir/pkg/usr/share/man/man1 - ln -sf bzip2.1 bunzip2.1 - ln -sf bzip2.1 bzcat.1 - ln -sf bzip2.1 bzip2recover.1 - - mkdir -p ${startdir}/pkg/usr/share/licenses/${pkgname} - install -m644 ${startdir}/src/${pkgname}-${pkgver}/LICENSE ${startdir}/pkg/usr/share/licenses/${pkgname}/LICENSE + + # use our optimization + sed -i "s|-O2|${CFLAGS}|g" Makefile + sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so + + make -f Makefile-libbz2_so + make bzip2recover libbz2.a } -md5sums=('3c15a0c8d1d3ee1c46a1634d00617b1a') +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 +} + |