void-packages/srcpkgs/diffutils/template

27 lines
772 B
Bash

# Template file for 'diffutils'
pkgname=diffutils
version=3.7
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="gl_cv_func_gettimeofday_clobber=no gl_cv_func_tzset_clobber=no"
short_desc="The GNU diff utilities"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/diffutils"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=b3a7a6221c3dc916085f0d205abf6b8e1ba443d4dd965118da364a1dc1cb3a26
if [ "$CROSS_BUILD" ]; then
# Tell configure we have GNU getopt
configure_args+=" gl_cv_func_getopt_gnu=yes"
fi
pre_check() {
case "$XBPS_TARGET_MACHINE" in
*-musl* )
# Disable locale tests that fail on musl
sed -i '/test-mbrtowc5.sh/d' gnulib-tests/Makefile ;;
esac
}