void-packages/srcpkgs/sed/template

30 lines
846 B
Bash

# Template file for 'sed'
pkgname=sed
version=4.8
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=f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633
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
}