void-packages/srcpkgs/sed/template

29 lines
807 B
Bash

# Template file for 'sed'
pkgname=sed
version=4.4
revision=1
bootstrap=yes
build_style=gnu-configure
configure_args="--enable-acl gl_cv_func_working_acl_get_file=yes"
makedepends="acl-devel"
short_desc="The GNU stream editor"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://www.gnu.org/software/sed"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=cbd6ebc5aaf080ed60d0162d7f6aeae58211a1ee9ba9bb25623daa6cd942683b
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
}