51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
# Template file for 'libarchive'
|
|
pkgname=libarchive
|
|
version=3.2.0
|
|
revision=5
|
|
bootstrap=yes
|
|
build_style=gnu-configure
|
|
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"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="zlib-devel bzip2-devel liblzma-devel
|
|
$(vopt_if acl acl-devel) $(vopt_if expat expat-devel)
|
|
$(vopt_if lzo lzo-devel) $(vopt_if ssl libressl-devel)"
|
|
short_desc="Library to read/write several different streaming archive formats"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.libarchive.org/"
|
|
license="BSD"
|
|
distfiles="http://www.libarchive.org/downloads/libarchive-${version}.tar.gz"
|
|
checksum=7bce45fd71ff01dc20d19edd78322d4965583d81b8bed8e26cacb65d6f5baa87
|
|
|
|
pre_configure() {
|
|
autoreconf -if
|
|
}
|
|
|
|
# Package build options
|
|
build_options="acl expat lzo ssl"
|
|
# Enable acl and ssl by default.
|
|
build_options_default="acl ssl"
|
|
|
|
bsdtar_package() {
|
|
replaces="bsdcpio>=0"
|
|
short_desc="BSD utilities using libarchive"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/man/man1
|
|
vmove usr/share/man/man5
|
|
# Conflicts with mtree.
|
|
mv ${PKGDESTDIR}/usr/share/man/man5/{mtree.5,libarchive-mtree.5}
|
|
}
|
|
}
|
|
libarchive-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share
|
|
}
|
|
}
|