summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7639d313f75..d8ea9340914 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ndn-psync
pkgdesc = Library implementing Named Data Networking (NDN) primitives that can be used to write various NDN applications
pkgver = 0.2.0
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/named-data/PSync
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index a3438e128bd..89a7e75aa56 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@ _reponame=PSync
_pkgname=ndn-psync
pkgname=$_pkgname
pkgver=0.2.0
-pkgrel=3
+pkgrel=4
# epoch=
pkgdesc="Library implementing Named Data Networking (NDN) primitives that can be used to write various NDN applications"
arch=('i686' 'x86_64')
@@ -27,7 +27,7 @@ validpgpkeys=()
prepare() {
cd "${srcdir}/${_reponame}-${pkgver}"
- ./waf configure --prefix=/usr
+ ./waf configure --prefix=/usr --with-tests
}
build() {
@@ -36,6 +36,12 @@ build() {
./waf docs
}
+check() {
+ cd "${srcdir}/${_reponame}-${pkgver}"
+ ./waf install --destdir="${srcdir}/tests"
+ LD_LIBRARY_PATH="${srcdir}/tests/usr/lib" ./build/unit-tests
+}
+
package() {
install -dm 755 "${pkgdir}/usr/share/doc/ndn-psync"