CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
pkg-config: updated to 0.29.2
[crossrootfs.git] / bzip2 / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: Very high-quality data compression program
2# URL: http://www.bzip.org/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on:
6
7name=bzip2
9a719059 8version=1.0.6
2f8423e0 9release=3
6dca1d21 10source=(http://www.bzip.org/$version/$name-$version.tar.gz \
2f8423e0 11 $name.patch CVE-2016-3189.patch)
6dca1d21
JB
12
13build() {
14 cd $name-$version
f2388520 15
9a719059 16 patch -Np1 -i $SRC/$name.patch
2f8423e0 17 patch -p1 -i $SRC/CVE-2016-3189.patch
f2388520 18
9a719059 19 sed "s|all: libbz2.a bzip2 bzip2recover test|all: libbz2.a bzip2 bzip2recover|g" -i Makefile
f2388520 20
6dca1d21
JB
21 make CC="$CC" AR="$AR" RANLIB="$RANLIB"
22 make PREFIX=$PKG/usr install
f2388520 23
6dca1d21
JB
24 make -f Makefile-libbz2_so CC="$CC"
25 make -f Makefile-libbz2_so PREFIX=$PKG/usr install
26
27}