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

Stéphane Gaudreault stephane at archlinux.org
Mon Jan 10 13:34:31 EST 2011


    Date: Monday, January 10, 2011 @ 13:34:30
  Author: stephane
Revision: 105599

upgpkg: gmp 5.0.1-2
Rebuild of old package, Tidy up PKGBUILD

Modified:
  gmp/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-01-10 18:30:13 UTC (rev 105598)
+++ PKGBUILD	2011-01-10 18:34:30 UTC (rev 105599)
@@ -4,7 +4,7 @@
 
 pkgname=gmp
 pkgver=5.0.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A free library for arbitrary precision arithmetic"
 arch=('i686' 'x86_64')
 url="http://gmplib.org/"
@@ -18,10 +18,14 @@
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   [ "${CARCH}" = "i686" ] && export ABI="32"
-  ./configure --build=$CHOST \
+  ./configure --build=${CHOST} \
     --prefix=/usr --infodir=/usr/share/info \
-    --enable-cxx || return 1
-  make || return 1
-  make check || return 1
-  make DESTDIR="${pkgdir}" install || return 1
+    --enable-cxx
+  make
+  make check
 }
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list