53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
# Template file for 'attr'
|
|
pkgname=attr
|
|
version=2.5.2
|
|
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=39bf67452fa41d0948c2197601053f48b3d78a029389734332a6309a680c6c87
|
|
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
|
|
}
|
|
}
|