void-packages/srcpkgs/grep/template
2017-11-24 22:31:20 +01:00

25 lines
661 B
Bash

# Template build file for 'grep'.
pkgname=grep
version=3.1
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config gettext-devel"
makedepends="pcre-devel"
short_desc="The GNU grep utility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="https://www.gnu.org/software/grep/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=db625c7ab3bb3ee757b3926a5cfa8d9e1c3991ad24707a83dde8a5ef2bf7a07e
pre_configure() {
autoreconf -fi
}
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
}