1 # Template file for 'libarchive'
6 build_style=gnu-configure
7 configure_args="$(vopt_enable acl) $(vopt_enable acl xattr)
8 $(vopt_with expat) $(vopt_with lzo lzo2) $(vopt_with lz4)
9 $(vopt_with ssl openssl) --without-xml2 --without-nettle
10 --disable-rpath ac_cv_func_lchmod=no"
11 makedepends="zlib-devel bzip2-devel liblzma-devel
12 $(vopt_if acl acl-devel) $(vopt_if expat expat-devel)
13 $(vopt_if lzo lzo-devel) $(vopt_if lz4 liblz4-devel) $(vopt_if ssl libressl-devel)"
14 short_desc="Library to read/write several different streaming archive formats"
15 maintainer="Juan RP <xtraeme@voidlinux.eu>"
16 homepage="http://www.libarchive.org/"
18 distfiles="http://www.libarchive.org/downloads/libarchive-${version}.tar.gz"
19 checksum=ed2dbd6954792b2c054ccf8ec4b330a54b85904a80cef477a1c74643ddafa0ce
21 # Package build options
22 build_options="acl expat lzo lz4 ssl"
23 # Enable acl and ssl by default.
24 build_options_default="acl ssl"
26 if [ "$CHROOT_READY" ]; then
27 hostmakedepends="automake libtool pkg-config"
39 short_desc="BSD utilities using libarchive"
42 vmove usr/share/man/man1
43 vmove usr/share/man/man5
44 # Conflicts with mtree.
45 mv ${PKGDESTDIR}/usr/share/man/man5/{mtree.5,libarchive-mtree.5}
48 libarchive-devel_package() {
49 depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
50 short_desc+=" - development files"
55 vmove usr/lib/pkgconfig