void-packages/srcpkgs/sed/template

35 lines
961 B
Bash

# Template file for 'sed'
pkgname=sed
version=4.9
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="--enable-acl gl_cv_func_working_acl_get_file=yes"
makedepends="acl-devel"
checkdepends="perl"
short_desc="The GNU stream editor"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/sed"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181
if [ "$XBPS_TARGET_LIBC" = musl ]; then
export ac_cv_lib_error_at_line=no
export ac_cv_header_sys_cdefs_h=no
fi
post_extract() {
# dont regenerate the man page with help2man...
sed -i 's|\(^doc/sed.1:\).*$|\1|' Makefile.in
}
pre_check() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
# Disable locale tests that fail on musl
sed -i '/test-localename$(EXEEXT)/d' gnulib-tests/Makefile
sed -i '/test-mbrtowc5.sh/d' gnulib-tests/Makefile ;;
esac
}