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

Sébastien Luttringer seblu at nymeria.archlinux.org
Tue Jul 1 19:15:27 UTC 2014


    Date: Tuesday, July 1, 2014 @ 21:15:27
  Author: seblu
Revision: 216173

upgpkg: patch 2.7.1-3

- https://www.archlinux.org/todo/mtree-rebuilds/

Modified:
  patch/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-07-01 19:10:11 UTC (rev 216172)
+++ PKGBUILD	2014-07-01 19:15:27 UTC (rev 216173)
@@ -1,43 +1,46 @@
 # $Id$
-# Maintainer: Allan McRae <allan at archlinux.org>
+# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
 # Contributor: judd <jvinet at zeroflux.org>
 
 pkgname=patch
 pkgver=2.7.1
-pkgrel=2
-pkgdesc="A utility to apply patch files to original sources"
+pkgrel=3
+pkgdesc='A utility to apply patch files to original sources'
 arch=('i686' 'x86_64')
-url="http://www.gnu.org/software/patch/patch.html"
+url='http://www.gnu.org/software/patch/patch.html'
 license=('GPL')
 groups=('base-devel')
-depends=('glibc')
+depends=('glibc' 'attr')
 makedepends=('ed')
 optdepends=('ed: for patch -e functionality')
-source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig}
-        patch-2.7.1-initialize-data-structures-early-enough.patch)
+source=("ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
+        'patch-2.7.1-initialize-data-structures-early-enough.patch')
 md5sums=('e9ae5393426d3ad783a300a338c09b72'
-         'b12189e0de3cb2af25268441647ec517'
+         'SKIP'
          'dc6367a7cd49933d4006c246789e98da')
 
-build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-
+prepare() {
   # Fix segfault on non-numeric strip-count
   # (also segfaults on nonexistent directory passed to -d)
   # http://savannah.gnu.org/bugs/?37500
-  patch -Np1 -i \
-    $srcdir/patch-2.7.1-initialize-data-structures-early-enough.patch
+  patch -Np1 -d $pkgname-$pkgver < patch-2.7.1-initialize-data-structures-early-enough.patch
+}
 
+build() {
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr
   make
 }
 
 check() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd $pkgname-$pkgver
   make check
 }
 
 package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  make DESTDIR=$pkgdir install
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
 }
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list