2008-10-23 00:41:51 +00:00
|
|
|
# Template build file for 'bzip2'.
|
|
|
|
pkgname=bzip2
|
2010-10-21 21:56:33 +00:00
|
|
|
version=1.0.6
|
2013-10-19 10:28:20 +00:00
|
|
|
revision=7
|
|
|
|
bootstrap=yes
|
2012-02-07 05:34:38 +00:00
|
|
|
homepage="http://www.bzip.org"
|
2010-10-21 21:56:33 +00:00
|
|
|
distfiles="http://www.bzip.org/$version/$pkgname-$version.tar.gz"
|
2008-10-23 00:41:51 +00:00
|
|
|
short_desc="The bzip2 compression library"
|
2012-02-07 05:34:38 +00:00
|
|
|
license="BSD"
|
2008-10-23 00:41:51 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-10-21 21:56:33 +00:00
|
|
|
checksum=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
|
2008-10-27 06:42:40 +00:00
|
|
|
|
2012-02-07 05:34:38 +00:00
|
|
|
do_build() {
|
2011-02-19 22:21:03 +00:00
|
|
|
make ${makejobs} -f Makefile-libbz2_so
|
|
|
|
make ${makejobs} bzip2recover libbz2.a
|
|
|
|
}
|
|
|
|
|
2012-02-07 05:34:38 +00:00
|
|
|
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
|
2011-02-19 22:21:03 +00:00
|
|
|
install -m755 bzdiff bzgrep bzmore ${DESTDIR}/usr/bin
|
|
|
|
|
2012-02-07 05:34:38 +00:00
|
|
|
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
|
2011-02-19 22:21:03 +00:00
|
|
|
|
2012-02-07 05:34:38 +00:00
|
|
|
vinstall libbz2.a 644 usr/lib
|
|
|
|
vinstall bzlib.h 644 usr/include
|
2011-02-19 22:21:03 +00:00
|
|
|
|
2012-02-07 05:34:38 +00:00
|
|
|
vinstall bzip2.1 644 usr/share/man/man1
|
2011-02-19 22:21:03 +00:00
|
|
|
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bunzip2.1
|
|
|
|
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzcat.1
|
|
|
|
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzip2recover.1
|
2012-02-07 05:34:38 +00:00
|
|
|
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/bzip2
|
2010-05-20 20:40:04 +00:00
|
|
|
}
|
2013-04-10 21:34:42 +00:00
|
|
|
|
|
|
|
bzip2-devel_package() {
|
2013-10-19 10:28:20 +00:00
|
|
|
replaces="chroot-bzip2>=0"
|
|
|
|
depends="bzip2>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-10 21:34:42 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-10-19 10:28:20 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 21:34:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bzip2_package() {
|
2013-10-19 10:28:20 +00:00
|
|
|
replaces="chroot-bzip2>=0"
|
2013-04-10 21:34:42 +00:00
|
|
|
pkg_install() {
|
2013-10-19 10:28:20 +00:00
|
|
|
vmove all
|
2013-04-10 21:34:42 +00:00
|
|
|
}
|
|
|
|
}
|