# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=grep pkgver=3.1 pkgrel=0 pkgdesc="Searches input files for lines containing a match to a specified pattern" url="https://www.gnu.org/software/grep/grep.html" arch="all" license="GPL" makedepends="pcre-dev autoconf automake" subpackages="$pkgname-doc" source="http://mirrors.kernel.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-nls \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true } sha512sums="05494381c7dd8aad7e2ee4c17450de8d7b969a99dcfe17747db60df3475bf02d5323d091e896e8343e4f3251c29dc7f0b7a9f93c575c9d58ee2a57014c2c9d26 grep-3.1.tar.xz"