summaryrefslogtreecommitdiffstats
path: root/abs/core/grep/PKGBUILD
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-24 02:41:43 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-24 02:41:43 (GMT)
commit6ec097d7baa94c226e0342000ab0e8567a26d85d (patch)
treef004b14f71694066d0cad27c6cfb0a65ac98815c /abs/core/grep/PKGBUILD
parent4aba3116edef8805f062cdf82a8ed69865e7a5ea (diff)
downloadlinhes_pkgbuild-6ec097d7baa94c226e0342000ab0e8567a26d85d.zip
linhes_pkgbuild-6ec097d7baa94c226e0342000ab0e8567a26d85d.tar.gz
linhes_pkgbuild-6ec097d7baa94c226e0342000ab0e8567a26d85d.tar.bz2
grep: upgrade
Diffstat (limited to 'abs/core/grep/PKGBUILD')
-rw-r--r--abs/core/grep/PKGBUILD61
1 files changed, 20 insertions, 41 deletions
diff --git a/abs/core/grep/PKGBUILD b/abs/core/grep/PKGBUILD
index 168d2d3..ee4628f 100644
--- a/abs/core/grep/PKGBUILD
+++ b/abs/core/grep/PKGBUILD
@@ -1,50 +1,29 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
-# Maintainer: judd <jvinet@zeroflux.org>
+# $Id: PKGBUILD 91020 2010-09-21 03:26:36Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
pkgname=grep
-pkgver=2.5.3
-pkgrel=12
+pkgver=2.7
+pkgrel=1
pkgdesc="A string search utility"
arch=('i686' 'x86_64')
-license=('GPL')
+license=('GPL3')
url="http://www.gnu.org/software/grep/grep.html"
groups=('base')
-depends=('glibc' 'pcre')
-makedepends=('texinfo>=4.8a')
-source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
- # patches from fedora cvs
- #01-fgrep.patch
- #02-bracket.patch
- #03-i18n.patch
- #04-oi.patch
- #05-manpage.patch
- #06-color.patch
- #07-icolor.patch
- #08-skip.patch
- #09-egf-speedup.patch
- #10-dfa-optional.patch
- #11-tests.patch
- #12-w.patch
- #13-P.patch
- 14-mem-exhausted.patch
- 15-empty-pattern.patch
- 64-egf-speedup.patch
-)
-md5sums=('4f371f25f413f700fb1984b878421f9d'
- 'bc937da562d468f32c1fef2894610283'
- 'f421415b679ebcc9152797caaa0b1d51'
- 'efbe9d49d71a74092db6b86224b09fdd')
-
-
+depends=('glibc' 'pcre' 'sh')
+makedepends=('texinfo')
+install=${pkgname}.install
+source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
+md5sums=('6dd9931a52501519d7779a27cf953326')
build() {
- cd $startdir/src/$pkgname-$pkgver
- for i in ../*.patch; do
- patch -Np1 -i ../$i
- done
- ./configure --prefix=/usr
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --bindir=/bin --without-included-regex
make || return 1
- make DESTDIR=$startdir/pkg install
- mkdir $startdir/pkg/bin
- mv $startdir/pkg/usr/bin/*grep $startdir/pkg/bin/
- rmdir $startdir/pkg/usr/bin
+ make check
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install || return 1
}