PKGBUILDs/core/bzip2/PKGBUILD

47 lines
1.4 KiB
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
2009-09-26 15:21:59 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
pkgname=bzip2
pkgver=1.0.5
pkgrel=1
pkgdesc="A high-quality data compression program"
arch=(arm)
license=('custom')
url="http://sources.redhat.com/bzip2"
groups=('base')
2009-09-26 15:21:59 +00:00
depends=()
2009-09-27 13:52:26 +00:00
source=(http://www.bzip.org/${pkgver}/${pkgname}-${pkgver}.tar.gz)
2009-09-26 14:35:50 +00:00
md5sums=('3c15a0c8d1d3ee1c46a1634d00617b1a')
build() {
cd $srcdir/bzip2-$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
2009-09-26 15:21:59 +00:00
install -dm755 $pkgdir/opt/bin
install -m755 bzip2-shared $pkgdir/opt/bin/bzip2
install -m755 bzip2recover $pkgdir/opt/bin
ln -sf bzip2 $pkgdir/opt/bin/bunzip2
ln -sf bzip2 $pkgdir/opt/bin/bzcat
2009-09-26 14:35:50 +00:00
2009-09-26 15:21:59 +00:00
install -Dm755 libbz2.so.1.0.4 $pkgdir/opt/lib/libbz2.so.1.0.4
2009-09-26 14:35:50 +00:00
2009-09-26 15:21:59 +00:00
install -Dm755 libbz2.so.1.0.4 $pkgdir/opt/lib/libbz2.so.1.0.4
ln -s libbz2.so.1.0.4 $pkgdir/opt/lib/libbz2.so
ln -s libbz2.so.1.0.4 $pkgdir/opt/lib/libbz2.so.1
ln -s libbz2.so.1.0.4 $pkgdir/opt/lib/libbz2.so.1.0
2009-09-26 14:35:50 +00:00
2009-09-26 15:21:59 +00:00
install -Dm644 libbz2.a ${pkgdir}/opt/lib/libbz2.a
# ln -sf ../../lib/libbz2.so ${pkgdir}/opt/lib/libbz2.so
2009-09-26 14:35:50 +00:00
2009-09-26 15:21:59 +00:00
install -Dm644 bzlib.h $pkgdir/opt/include/bzlib.h
2009-09-26 14:35:50 +00:00
install -Dm644 $srcdir/${pkgname}-${pkgver}/LICENSE \
2009-09-26 15:21:59 +00:00
$pkgdir/opt/share/licenses/${pkgname}/LICENSE
2009-09-26 14:35:50 +00:00
}