void-packages/srcpkgs/chroot-bzip2/template

43 lines
1.1 KiB
Text

# Template build file for 'chroot-bzip2'.
pkgname=chroot-bzip2
version=1.0.6
revision=2
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
bootstrap=yes
do_build() {
make ${makejobs} -f Makefile-libbz2_so
make ${makejobs} bzip2recover libbz2.a
}
do_install() {
vinstall bzip2-shared 755 usr/bin bzip2
vinstall bzip2recover 755 usr/bin
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
}
chroot-bzip2_package() {
provides="bzip2-${version} bzip2-devel-${version}"
conflicts="bzip2>=0"
noverifyrdeps=yes
pkg_install() {
vmove usr
}
}