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

David Runge dvzrv at archlinux.org
Sun Feb 18 22:40:02 UTC 2018


    Date: Sunday, February 18, 2018 @ 22:40:01
  Author: dvzrv
Revision: 296262

upgpkg: serd 0.28.0-2

Adding unit tests in check().

Modified:
  serd/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-02-18 22:34:19 UTC (rev 296261)
+++ PKGBUILD	2018-02-18 22:40:01 UTC (rev 296262)
@@ -5,7 +5,7 @@
 
 pkgname=serd
 pkgver=0.28.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples."
 arch=('x86_64')
 url="https://drobilla.net/software/serd/"
@@ -25,14 +25,20 @@
 
 build() {
   cd "${pkgname}-${pkgver}"
-  python ./waf configure --prefix=/usr \
-                         --mandir=/usr/share/man
-  python ./waf
+  python waf configure --prefix=/usr \
+                       --mandir=/usr/share/man \
+                       --test
+  python waf
 }
 
+check() {
+  cd "${pkgname}-${pkgver}"
+  python waf test
+}
+
 package() {
   cd "${pkgname}-${pkgver}"
-  python ./waf install --destdir="${pkgdir}"
+  python waf install --destdir="${pkgdir}"
   # license
   install -vDm644 COPYING \
     "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"



More information about the arch-commits mailing list