diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..62fdced3f387 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Filippo Berto <berto.f@protonmail.com> +_pkgname=ndn-cxx +pkgname=${_pkgname}-git +pkgver=ndn.cxx.0.6.6.r46.g5e494c0c +pkgrel=1 +# epoch= +pkgdesc="Library implementing Named Data Networking (NDN) primitives that can be used to write various NDN applications" +arch=("any") +url="https://github.com/named-data/${_pkgname}" +license=('GPL') +groups=() +depends=() +makedepends=('git' 'gcc' 'python' 'boost' 'pkgconf' 'sqlite' 'openssl>=1.0.2') +checkdepends=() +optdepends=() +provides=("${_pkgname}") +conflicts=("${_pkgname}") +replaces=() +backup=() +options=() +install= +source=("git+${url}.git") +noextract=() +sha256sums=('SKIP') +validpgpkeys=() + +prepare() { + cd "${srcdir}/${_pkgname}" + git checkout `g describe --tags --abbrev=0` + # Run the initial configuration + ./waf configure +} + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${_pkgname}" + # Build libraries and tools + ./waf build +} + +# check() { +# cd "${srcdir}/${_reponame}" +# ./waf check +# } + +package() { + cd "${srcdir}/${_pkgname}" + ./waf install --destdir="${pkgdir}" + + mv "${pkgdir}/usr/local/"* "${pkgdir}/usr" +} |