summaryrefslogtreecommitdiff
path: root/pcr/opendht/PKGBUILD
blob: 55cd9bef9f7aad3501b6fe1ee9455cfab8f970ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Luke Shumaker <lukeshu@parabola.nu>

pkgname=opendht
pkgver=1.3.0
pkgdesc="A C++11 Kademlia Distributed Hash Table implementation"
url="https://github.com/savoirfairelinux/opendht"
license=('GPL3')

pkgrel=1
arch=('i686' 'x86_64')
depends=('gnutls')
makedepends=('msgpack-c' 'doxygen' 'graphviz' 'cython')
source=("$pkgname-$pkgver.tar.gz::https://github.com/savoirfairelinux/$pkgname/archive/$pkgver.tar.gz")
md5sums=('c8f0709678243bdf02f941fdde5366b4')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./autogen.sh
  ./configure --prefix=/usr --enable-doc
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  install -d "$pkgdir/usr/share/doc/$pkgname"
  cp -r doc/html "$pkgdir/usr/share/doc/$pkgname"
}