summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD23
2 files changed, 20 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1e0a0642add..ba37bce73fa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,19 @@
pkgbase = ndn-nlsr
pkgdesc = Named Data Link State Routing Protocol
pkgver = 0.5.2
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/named-data/NLSR
arch = i686
arch = x86_64
license = GPL
makedepends = git
makedepends = python
- makedepends = boost
- makedepends = sqlite
- makedepends = openssl>=1.0.2
+ makedepends = python-sphinx
+ makedepends = doxygen
depends = ndn-cxx
depends = boost
depends = ndn-psync
- optdepends = valgrind: memory analysis
- optdepends = doxygen: build documentation
- optdepends = python-sphinx: build documentation
+ depends = ndn-chronosync
provides = ndn-nlsr
conflicts = ndn-nlsr
source = https://github.com/named-data/NLSR/archive/NLSR-0.5.2.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index c8f8d4274da..ae348b8521c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,19 +3,17 @@ _reponame=NLSR
_pkgname=ndn-nlsr
pkgname=$_pkgname
pkgver=0.5.2
-pkgrel=2
+pkgrel=3
# epoch=
pkgdesc="Named Data Link State Routing Protocol"
arch=('i686' 'x86_64')
url="https://github.com/named-data/${_reponame}"
license=('GPL')
groups=()
-depends=('ndn-cxx' 'boost' 'ndn-psync')
-makedepends=('git' 'python' 'boost' 'sqlite' 'openssl>=1.0.2')
+depends=('ndn-cxx' 'boost' 'ndn-psync' 'ndn-chronosync')
+makedepends=('git' 'python' 'python-sphinx' 'doxygen')
checkdepends=()
-optdepends=('valgrind: memory analysis'
- 'doxygen: build documentation'
- 'python-sphinx: build documentation')
+optdepends=()
provides=("${_pkgname}")
conflicts=("${_pkgname}")
replaces=()
@@ -33,15 +31,26 @@ prepare() {
# Patch missing includes
sed -i '26i#include <ostream>' src/statistics.hpp
- ./waf configure --prefix=/usr
+ ./waf configure --prefix=/usr --with-tests
}
build() {
cd "${srcdir}/${_reponame}-${_reponame}-${pkgver}"
./waf build
+ ./waf docs
}
+# Check disabled until upstream gets fixed
+#check() {
+# cd "${srcdir}/${_reponame}-${_reponame}-${pkgver}"
+# ./waf install --destdir="${srcdir}/tests"
+# LD_LIBRARY_PATH="${srcdir}/tests/usr/lib" ./build/unit-tests-nlsr
+#}
+
package() {
+ install -dm 755 "${pkgdir}/usr/share/doc/$_pkgname"
+
cd "${srcdir}/${_reponame}-${_reponame}-${pkgver}"
./waf install --destdir="${pkgdir}"
+ cp -r "${srcdir}/${_reponame}-${_reponame}-${pkgver}/build/docs/"* "${pkgdir}/usr/share/doc/$_pkgname"
}