void-packages/srcpkgs/xar/template

35 lines
858 B
Bash

# Template file for 'xar'
pkgname=xar
version=1.6.1
revision=7
build_style=gnu-configure
configure_args="ac_cv_sizeof_uid_t=4"
makedepends="zlib-devel bzip2-devel e2fsprogs-devel acl-devel libxml2-devel libressl-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/downloads/mackyle/xar/${pkgname}-${version}.tar.gz"
checksum=ee46089968457cf710b8cf1bdeb98b7ef232eb8a4cdeb34502e1f16ef4d2153e
case "$XBPS_TARGET_MACHINE" in
*-musl)
makedepends+=" musl-fts-devel"
LDFLAGS="-lfts"
;;
esac
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
}
}