void-packages/srcpkgs/xar/template

41 lines
942 B
Bash

# Template file for 'xar'
pkgname=xar
version=1.6.1
revision=10
build_style=gnu-configure
build_wrksrc="xar"
configure_args="ac_cv_sizeof_uid_t=4"
hostmakedepends="automake"
makedepends="zlib-devel bzip2-devel e2fsprogs-devel acl-devel libxml2-devel openssl-devel"
short_desc="Archiver for the eXtensible ARchiver format"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/mackyle/xar"
distfiles="https://github.com/mackyle/xar/archive/refs/tags/xar-${version}.tar.gz"
checksum=5e7d50dab73f5cb1713b49fa67c455c2a0dd2b0a7770cbc81b675e21f6210e25
case "$XBPS_TARGET_MACHINE" in
*-musl)
makedepends+=" musl-fts-devel"
LDFLAGS="-lfts"
;;
esac
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense LICENSE
}
xar-devel_package() {
depends="xar-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}