summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/grep/PKGBUILD61
-rw-r--r--abs/core/grep/grep.install21
2 files changed, 41 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
}
diff --git a/abs/core/grep/grep.install b/abs/core/grep/grep.install
new file mode 100644
index 0000000..ba97d89
--- /dev/null
+++ b/abs/core/grep/grep.install
@@ -0,0 +1,21 @@
+infodir=/usr/share/info
+filelist=(grep.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+