bzip2: convert to the new template format.

This commit is contained in:
Juan RP 2013-04-10 23:34:42 +02:00
parent af99924e03
commit 462b13cea0
2 changed files with 16 additions and 19 deletions

View File

@ -1,16 +0,0 @@
# Template file for 'bzip2-devel'.
#
depends="glibc-devel bzip2"
short_desc="${sourcepkg} development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/libbz2.*a ${DESTDIR}/usr/lib
}

View File

@ -9,9 +9,6 @@ license="BSD"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
subpackages="bzip2-devel"
conflicts="chroot-bzip2>=0"
do_build() {
make ${makejobs} -f Makefile-libbz2_so
make ${makejobs} bzip2recover libbz2.a
@ -39,3 +36,19 @@ do_install() {
vinstall LICENSE 644 usr/share/licenses/bzip2
}
bzip2-devel_package() {
depends="bzip2>=${version}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}
bzip2_package() {
conflicts="chroot-bzip2>=0"
pkg_install() {
vmove usr
}
}