53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
# Template file for 'attr'
|
|
pkgname=attr
|
|
version=2.4.48
|
|
revision=1
|
|
bootstrap=yes
|
|
build_style=gnu-configure
|
|
checkdepends="perl"
|
|
configure_args="--libdir=/usr/lib${XBPS_TARGET_WORDSIZE}
|
|
--libexecdir=/usr/lib${XBPS_TARGET_WORDSIZE}"
|
|
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=5ead72b358ec709ed00bbf7a9eaef1654baad937c001c044fe8b74c57f5324e7
|
|
make_check_args="-j1" # Tests broken when ran in parallel
|
|
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
|
|
}
|
|
}
|