2008-12-26 11:02:30 +01:00
|
|
|
# Template file for 'libarchive'
|
|
|
|
pkgname=libarchive
|
2013-02-20 14:34:18 +01:00
|
|
|
version=3.1.2
|
2015-03-04 16:04:30 +01:00
|
|
|
revision=16
|
2014-01-01 16:10:11 +01:00
|
|
|
bootstrap=yes
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-12-25 19:44:33 +01:00
|
|
|
configure_args="$(vopt_enable acl) $(vopt_enable acl xattr)
|
|
|
|
$(vopt_with expat) $(vopt_with lzo lzo2) $(vopt_with ssl openssl)
|
|
|
|
--without-xml2 --without-nettle --disable-rpath ac_cv_func_lchmod=no"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="zlib-devel bzip2-devel liblzma-devel
|
2014-12-25 19:44:33 +01:00
|
|
|
$(vopt_if acl acl-devel) $(vopt_if expat expat-devel)
|
2015-03-27 10:50:40 +01:00
|
|
|
$(vopt_if lzo lzo-devel) $(vopt_if ssl libressl-devel)"
|
2010-02-19 17:59:43 +01:00
|
|
|
short_desc="Library to read/write several different streaming archive formats"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-02-20 14:34:18 +01:00
|
|
|
homepage="http://www.libarchive.org/"
|
2011-09-07 11:17:19 +02:00
|
|
|
license="BSD"
|
2013-02-20 14:34:18 +01:00
|
|
|
distfiles="http://www.libarchive.org/downloads/libarchive-${version}.tar.gz"
|
|
|
|
checksum=eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2c53d5e
|
2013-02-06 17:10:58 +01:00
|
|
|
|
2013-10-24 10:06:51 +02:00
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
|
|
CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include"
|
|
|
|
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
|
|
|
|
fi
|
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-10-18 08:15:42 +02:00
|
|
|
hostmakedepends="libtool"
|
2013-02-20 14:34:18 +01:00
|
|
|
pre_configure() {
|
2013-10-18 08:15:42 +02:00
|
|
|
libtoolize -f
|
2013-02-20 14:34:18 +01:00
|
|
|
}
|
2013-02-06 17:10:58 +01:00
|
|
|
fi
|
2013-04-12 13:13:49 +02:00
|
|
|
|
2013-10-18 08:15:42 +02:00
|
|
|
# Package build options
|
2013-10-19 12:30:08 +02:00
|
|
|
build_options="acl expat lzo ssl"
|
2013-10-18 08:15:42 +02:00
|
|
|
# Enable acl and ssl by default.
|
|
|
|
build_options_default="acl ssl"
|
|
|
|
|
2013-04-12 13:13:49 +02: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() {
|
2014-07-14 11:07:38 +02:00
|
|
|
depends="${makedepends} libarchive>=${version}_${revision}"
|
2013-05-25 11:45:14 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2013-10-18 08:15:42 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 13:13:49 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share
|
2014-12-25 19:44:33 +01:00
|
|
|
# Conflicts with mtree.
|
|
|
|
mv ${PKGDESTDIR}/usr/share/man/man5/{mtree.5,libarchive-mtree.5}
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|