void-packages/srcpkgs/chroot-bzip2/template

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-02-28 11:02:42 +01:00
# Template build file for 'chroot-bzip2'.
pkgname=chroot-bzip2
version=1.0.6
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
noverifyrdeps=yes
2012-02-28 11:02:42 +01:00
bootstrap=yes
provides="bzip2-${version} bzip2-devel-${version}"
2012-02-28 11:02:42 +01:00
conflicts="bzip2>=0"
do_build() {
make ${makejobs} -f Makefile-libbz2_so
make ${makejobs} bzip2recover libbz2.a
2012-02-28 11:02:42 +01:00
}
do_install() {
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
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
}