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

Allan McRae allan at archlinux.org
Thu Nov 3 08:03:38 EDT 2011


    Date: Thursday, November 3, 2011 @ 08:03:37
  Author: allan
Revision: 141944

signing rebuild

Modified:
  patch/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-03 11:43:21 UTC (rev 141943)
+++ PKGBUILD	2011-11-03 12:03:37 UTC (rev 141944)
@@ -4,28 +4,37 @@
 
 pkgname=patch
 pkgver=2.6.1
-pkgrel=2
+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"
 license=('GPL')
 groups=('base-devel')
 depends=('glibc')
+makedepends=('ed')
 optdepends=('ed: Interpret the patch as an ed script; for patch -e functionality(deprecated)')
-source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz patch-2.6.1-get-arg.patch)
-md5sums=('d758eb96d3f75047efc004a720d33daf' '45cd5709adbbcdcb3ab95dc43559c07c')
+source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.sig}
+        patch-2.6.1-get-arg.patch)
+md5sums=('d758eb96d3f75047efc004a720d33daf'
+         'f7953f3e472fae5118815e6138372e22'
+         '45cd5709adbbcdcb3ab95dc43559c07c')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${srcdir}/${pkgname}-${pkgver}
 
   # Fixed argument type for --get
   # see https://bugzilla.redhat.com/show_bug.cgi?id=553624
-  patch -Np1 -i ../patch-2.6.1-get-arg.patch
+  patch -Np1 -i $srcdir/patch-2.6.1-get-arg.patch
   ./configure --prefix=/usr --mandir=/usr/share/man
   make
 }
 
+check() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make check
+}
+
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${srcdir}/${pkgname}-${pkgver}
   make prefix=${pkgdir}/usr mandir=${pkgdir}/usr/share/man install
 }



More information about the arch-commits mailing list