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

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Jun 17 22:03:38 UTC 2011


    Date: Friday, June 17, 2011 @ 18:03:38
  Author: andyrtr
Revision: 127729

upgpkg: gnupg 1.4.11-3
add --enable-noexecstack FS#24694; add make check function

Modified:
  gnupg/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-06-17 20:55:32 UTC (rev 127728)
+++ PKGBUILD	2011-06-17 22:03:38 UTC (rev 127729)
@@ -3,7 +3,7 @@
 # Committer: Judd Vinet <jvinet at zeroflux.org>
 pkgname=gnupg
 pkgver=1.4.11
-pkgrel=2
+pkgrel=3
 pkgdesc="GNU Privacy Guard - a PGP replacement tool"
 arch=('i686' 'x86_64')
 license=('GPL3')
@@ -15,14 +15,21 @@
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --libexecdir=/usr/lib # docdir can't be set properly
-  make || return 1
-  ln -s ${pkgname}-${pkgver}/scripts ..
+  ./configure --prefix=/usr \
+	--libexecdir=/usr/lib \
+	--enable-noexecstack
+  make
+  #ln -s ${pkgname}-${pkgver}/scripts .. # seems obsolete now
 }
-  
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make -k check #All 27 tests passed
+}
+
 package () {
   cd ${srcdir}/${pkgname}-${pkgver}
-  make DESTDIR=${pkgdir} install || return 1
+  make DESTDIR=${pkgdir} install
   
   # fix fileconflict with gnupg2 pkg
   rm ${pkgdir}/usr/share/man/man1/gpg-zip.1




More information about the arch-commits mailing list