[arch-commits] Commit in grep/trunk (PKGBUILD)

Sébastien Luttringer seblu at archlinux.org
Fri Dec 21 10:08:06 UTC 2018


    Date: Friday, December 21, 2018 @ 10:08:06
  Author: seblu
Revision: 342630

upgpkg: grep 3.2-1

Modified:
  grep/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-21 10:03:40 UTC (rev 342629)
+++ PKGBUILD	2018-12-21 10:08:06 UTC (rev 342630)
@@ -3,8 +3,8 @@
 # Contributor: judd <jvinet at zeroflux.org>
 
 pkgname=grep
-pkgver=3.1
-pkgrel=2
+pkgver=3.2
+pkgrel=1
 pkgdesc='A string search utility'
 arch=('x86_64')
 license=('GPL3')
@@ -13,19 +13,21 @@
 depends=('glibc' 'pcre')
 makedepends=('texinfo')
 validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') # Jim Meyering
-source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
-        testsuite.patch)
-md5sums=('feca7b3e7c7f4aab2b42ecbfc513b070'
-         'SKIP'
-         '0d3082d1d1fb77e7575c106fc4df1341')
+source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
+md5sums=('fea706effd9161d1b41e4b536a8ec88e'
+         'SKIP')
 
 prepare() {
   cd $pkgname-$pkgver
-  
-  # http://git.savannah.gnu.org/cgit/grep.git/patch/?id=c505b0bce73c712f1297bc5f424e0de5e4ec3137
-  patch -p1 -i $srcdir/testsuite.patch
-
-  autoreconf
+  # apply patch from the source array (should be a pacman feature)
+  local src
+  for src in "${source[@]}"; do
+    src="${src%%::*}"
+    src="${src##*/}"
+    [[ $src = *.patch ]] || continue
+    msg2 "Applying patch $src..."
+    patch -Np1 < "../$src"
+  done
 }
 
 build() {



More information about the arch-commits mailing list