void-packages/srcpkgs/grep/template

23 lines
623 B
Bash

# Template file for 'grep'
pkgname=grep
version=3.3
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="pcre-devel"
checkdepends="perl"
short_desc="The GNU grep utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/grep/"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=b960541c499619efd6afe1fa795402e4733c8e11ebf9fafccc0bb4bccdc5b514
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
}