# Template file for 'grep'
pkgname=grep
version=3.6
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="pcre-devel"
checkdepends="perl"
short_desc="GNU grep utility"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/grep/"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=667e15e8afe189e93f9f21a7cd3a7b3f776202f417330b248c2ad4f997d9373e

pre_check() {
	case "$XBPS_TARGET_MACHINE" in
		*-musl)
			# Disable locale tests that fail on musl
			sed -i '/test-localename$(EXEEXT)/d' gnulib-tests/Makefile
	esac
}
