# Depends on:
name=bzip2
-version=1.0.5
+version=1.0.6
release=1
source=(http://www.bzip.org/$version/$name-$version.tar.gz \
- $name-$version.patch)
+ $name.patch)
build() {
cd $name-$version
- patch -p1 -i $SRC/$name-$version.patch
+ patch -Np1 -i $SRC/$name.patch
+ sed "s|all: libbz2.a bzip2 bzip2recover test|all: libbz2.a bzip2 bzip2recover|g" -i Makefile
make CC="$CC" AR="$AR" RANLIB="$RANLIB"
make PREFIX=$PKG/usr install
make -f Makefile-libbz2_so CC="$CC"