2012-02-28 11:02:42 +01:00
|
|
|
# Template build file for 'chroot-bzip2'.
|
|
|
|
pkgname=chroot-bzip2
|
|
|
|
version=1.0.6
|
2013-02-05 14:47:34 +01:00
|
|
|
revision=2
|
2012-02-28 11:02:42 +01:00
|
|
|
wrksrc="bzip2-${version}"
|
|
|
|
homepage="http://www.bzip.org"
|
|
|
|
distfiles="http://www.bzip.org/$version/bzip2-$version.tar.gz"
|
|
|
|
short_desc="The bzip2 compression library"
|
|
|
|
license="BSD"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
checksum=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
|
|
|
|
|
2012-02-28 22:03:19 +01:00
|
|
|
noverifyrdeps=yes
|
2012-02-28 11:02:42 +01:00
|
|
|
bootstrap=yes
|
2012-02-28 22:03:19 +01:00
|
|
|
provides="bzip2-${version} bzip2-devel-${version}"
|
2012-02-28 11:02:42 +01:00
|
|
|
conflicts="bzip2>=0"
|
|
|
|
|
|
|
|
do_build() {
|
2012-02-28 22:03:19 +01:00
|
|
|
make ${makejobs} -f Makefile-libbz2_so
|
|
|
|
make ${makejobs} bzip2recover libbz2.a
|
2012-02-28 11:02:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2012-02-28 22:03:19 +01:00
|
|
|
vinstall bzip2-shared 755 usr/bin bzip2
|
|
|
|
vinstall bzip2recover 755 usr/bin
|
2012-02-28 11:02:42 +01:00
|
|
|
ln -sf bzip2 ${DESTDIR}/usr/bin/bunzip2
|
|
|
|
ln -sf bzip2 ${DESTDIR}/usr/bin/bzcat
|
2012-02-28 22:03:19 +01:00
|
|
|
install -m755 bzdiff bzgrep bzmore ${DESTDIR}/usr/bin
|
|
|
|
|
|
|
|
vinstall libbz2.so.${version} 755 usr/lib
|
|
|
|
ln -s libbz2.so.${version} ${DESTDIR}/usr/lib/libbz2.so
|
|
|
|
ln -s libbz2.so.${version} ${DESTDIR}/usr/lib/libbz2.so.1
|
|
|
|
ln -s libbz2.so.${version} ${DESTDIR}/usr/lib/libbz2.so.1.0
|
|
|
|
|
|
|
|
vinstall libbz2.a 644 usr/lib
|
|
|
|
vinstall bzlib.h 644 usr/include
|
2012-02-28 11:02:42 +01:00
|
|
|
}
|