blob: 81dbf0bacf97e9cf693465d2ba21a9386db20330 (
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
|
description="Very high-quality data compression program."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.bzip.org/"
depends=()
name=bzip2
version=1.0.6
release=1
source=(http://www.bzip.org/$version/$name-$version.tar.gz bzip2.patch)
build ()
{
local makeopts=(
${CHOST:+CC=${CHOST}-gcc}
${CHOST:+AR=${CHOST}-ar}
${CHOST:+RANLIB=${CHOST}-ranlib}
${CHOST:+LD=${CHOST}-ld}
)
cd $name-$version;
patch -Np1 -i $SRC/$name.patch;
sed -i -e "/all:/ s| test||" Makefile;
sed -i -e "s|/man|${mandir/$prefix}|g" Makefile;
make ${makeopts[@]};
make PREFIX=$PKG$prefix MANDIR=$PKG$mandir install;
make -f Makefile-libbz2_so ${makeopts};
make -f Makefile-libbz2_so PREFIX=$PKG$prefix MANDIR=$PKG$mandir install
}
|