/
template
32 lines (29 loc) · 904 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Template file for 'diffutils'
pkgname=diffutils
version=3.9
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="gl_cv_func_gettimeofday_clobber=no gl_cv_func_tzset_clobber=no"
checkdepends="perl"
short_desc="GNU diff utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/diffutils"
distfiles="${GNU_SITE}/diffutils/diffutils-${version}.tar.xz"
checksum=d80d3be90a201868de83d78dad3413ad88160cc53bcc36eb9eaf7c20dbf023f1
if [ "$XBPS_TARGET_LIBC" = musl ]; then
export ac_cv_lib_error_at_line=no
export ac_cv_header_sys_cdefs_h=no
fi
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
}