# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=grep pkgver=2.23 pkgrel=0 pkgdesc="Searches input files for lines containing a match to a specified pattern" url="http://www.gnu.org/software/grep/grep.html" arch="all" license="GPL" depends= makedepends="pcre-dev autoconf automake" install= subpackages="$pkgname-doc" source="http://mirrors.kernel.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz " _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } 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 return 0 } md5sums="f46aa9d0d2577b9212a104348a286787 grep-2.23.tar.xz" sha256sums="54fc478ee1ce17780109820ef30730c9e18715a949f7d5c6afc673adb2a56ecf grep-2.23.tar.xz" sha512sums="4b1d86bfe46039db6d5e1c773f73a30a1fd21a2bdceba6286df0e6b97d93f01750e9ba3a6363a31c06c9ff9fa3850b0a9bca214d52cccf4d0d27e087208ab3ab grep-2.23.tar.xz"