vp-build/srcpkgs/attr/template

53 lines
1.4 KiB
Bash

# Template file for 'attr'
pkgname=attr
version=2.5.1
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="--libdir=/usr/lib${XBPS_TARGET_WORDSIZE}
--libexecdir=/usr/lib${XBPS_TARGET_WORDSIZE}"
make_check_args="-j1" # Tests broken when ran in parallel
checkdepends="perl"
short_desc="Extended attribute support library for ACL support"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://savannah.nongnu.org/projects/attr"
distfiles="${NONGNU_SITE}/attr/attr-${version}.tar.gz"
checksum=bae1c6949b258a0d68001367ce0c741cebdacdd3b62965d17e5eb23cd78adaf8
conf_files="/etc/xattr.conf"
# The included libtool is rotten and only works with bash; easiest fix.
export CONFIG_SHELL=/bin/bash
pre_check() {
# Either the test wasn't updated or the package misconfigures/miscompiles
# the error message in musl based systems
# EXPECTED: Operation not supported
# RECIEVED: Not supported
case "$XBPS_TARGET_MACHINE" in
*-musl* ) sed -i 's|f: Operation n|f: N|g' test/attr.test ;;
esac
}
attr-devel_package() {
depends="attr-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/man/man3
vmove usr/share/doc
vmove usr/lib/pkgconfig
}
}
attr-progs_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
vmove usr/share/man/man1
vmove usr/share/locale
}
}