blob: 36d8883984f9a08011edd233d39aa8ca46b71e48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of bzip2
_pkgname=bzip2
pkgname=bzip2-static
pkgver=1.0.6
pkgrel=5.1
pkgdesc="A high-quality data compression program (static libraries only)"
arch=('i686' 'x86_64' 'armv7h')
license=('custom')
url="http://sources.redhat.com/bzip2"
depends=('bzip2')
options=('staticlibs')
source=(http://www.bzip.org/$pkgver/bzip2-$pkgver.tar.gz
bzip2-1.0.4-bzip2recover.patch)
sha1sums=('3f89f861209ce81a6bab1fd1998c0ef311712002'
'85ce76fdb67f52f152bba368c1de81132dcdbdb5')
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
}
check() {
cd "$srcdir/$_pkgname-$pkgver"
make test
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
install -dm755 $pkgdir/usr/lib
install -m755 libbz2.a $pkgdir/usr/lib
}
|