diff --git a/srcpkgs/quota/template b/srcpkgs/quota/template index 5013804b25..d4fa3d04ed 100644 --- a/srcpkgs/quota/template +++ b/srcpkgs/quota/template @@ -1,6 +1,6 @@ # Template file for 'quota' pkgname=quota -version=4.05 +version=4.06 revision=1 build_style=gnu-configure make_build_args="V=1" @@ -12,11 +12,12 @@ maintainer="Leah Neukirchen " license="GPL-2" homepage="https://sourceforge.net/projects/linuxquota/" distfiles="${SOURCEFORGE_SITE}/linuxquota/quota-tools/${pkgname}-${version}.tar.gz" -checksum=ef3b5b5d1014ed1344b46c1826145e20cbef8db967b522403c9a060761cf7ab9 +checksum=2f3e03039f378d4f0d97acdb49daf581dcaad64d2e1ddf129495fd579fbd268d -post_extract() { - sed -i 's/CFLAGS="/CFLAGS+=" /' configure -} +case "$XBPS_TARGET_MACHINE" in + # Only used in places where overflow is not possible. + *-musl) CFLAGS+=' -Dreallocarray\(o,n,s\)=realloc\(o,n*s\)';; +esac post_install() { rm -rf ${DESTDIR}/usr/include/rpcsvc ${DESTDIR}/usr/share/doc/quota