2008-12-26 10:02:30 +00:00
|
|
|
# Template file for 'libarchive'
|
|
|
|
pkgname=libarchive
|
2013-02-20 13:34:18 +00:00
|
|
|
version=3.1.2
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-01-04 15:22:48 +00:00
|
|
|
configure_args="--without-xml2 --without-nettle"
|
2013-04-06 23:48:53 +00:00
|
|
|
makedepends="zlib-devel bzip2-devel acl-devel openssl-devel liblzma-devel expat-devel"
|
2010-02-19 16:59:43 +00:00
|
|
|
short_desc="Library to read/write several different streaming archive formats"
|
2008-12-26 10:02:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-20 13:34:18 +00:00
|
|
|
homepage="http://www.libarchive.org/"
|
2011-09-07 09:17:19 +00:00
|
|
|
license="BSD"
|
2013-02-20 13:34:18 +00:00
|
|
|
distfiles="http://www.libarchive.org/downloads/libarchive-${version}.tar.gz"
|
|
|
|
checksum=eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2c53d5e
|
2013-02-06 16:10:58 +00:00
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-04-06 23:40:22 +00:00
|
|
|
hostmakedepends="libtool automake"
|
2013-02-20 13:34:18 +00:00
|
|
|
pre_configure() {
|
|
|
|
./build/autogen.sh
|
|
|
|
}
|
2013-02-06 16:10:58 +00:00
|
|
|
fi
|
2013-04-12 11:13:49 +00:00
|
|
|
|
|
|
|
bsdtar_package() {
|
|
|
|
short_desc="BSD tar(1) using libarchive"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/bsdtar
|
|
|
|
vmove usr/share/man/man1/bsdtar.1
|
|
|
|
vmove usr/share/man/man5/tar.5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bsdcpio_package() {
|
|
|
|
short_desc="BSD cpio(1) using libarchive"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/bsdcpio
|
|
|
|
vmove usr/share/man/man1/bsdcpio.1
|
|
|
|
vmove usr/share/man/man5/cpio.5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libarchive-devel_package() {
|
|
|
|
depends="acl-devel zlib-devel bzip2-devel liblzma-devel
|
|
|
|
openssl-devel expat-devel libarchive>=${version}"
|
|
|
|
short_desc="${short_desc} -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libarchive_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|