summaryrefslogtreecommitdiff
path: root/testing/grep/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-04 00:01:47 +0000
committerroot <root@rshg054.dnsready.net>2012-03-04 00:01:47 +0000
commitf0fa42126da9e3eec6b98388b35c67929fa20dae (patch)
tree0a4ad5b073e8500ff0e8920ba509942598576463 /testing/grep/PKGBUILD
parentd8fb549de0ef3299436c448f7b45fd8ebee8e733 (diff)
Sun Mar 4 00:01:47 UTC 2012
Diffstat (limited to 'testing/grep/PKGBUILD')
-rw-r--r--testing/grep/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/grep/PKGBUILD b/testing/grep/PKGBUILD
new file mode 100644
index 000000000..fdb2a36ab
--- /dev/null
+++ b/testing/grep/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 151764 2012-03-02 11:04:18Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=grep
+pkgver=2.11
+pkgrel=1
+pkgdesc="A string search utility"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="http://www.gnu.org/software/grep/grep.html"
+groups=('base')
+depends=('glibc' 'pcre' 'sh')
+makedepends=('texinfo')
+install=${pkgname}.install
+source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
+md5sums=('ad9c6dbdeab93e50d2bc380f10ed3643'
+ 'e4fea5e355973c951f93f48bc86f92fa')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --without-included-regex
+ make
+}
+
+check() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make check
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install
+
+ install -dm755 ${pkgdir}/bin
+ ln -s /usr/bin/grep ${pkgdir}/bin/grep
+}