void-packages/srcpkgs/attr/template
2018-06-26 10:26:47 -03:00

55 lines
1.5 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 --libexecdir=/usr/lib"
short_desc="Extended attribute support library for ACL support"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
configure_args="--libdir=/usr/lib32 --libexecdir=/usr/lib32"
fi
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
}
}