summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a147adcfae5405ab94bc89575469e061c9d80098 (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
32
33
34
35
36
37
# Maintainer: Jonathan Knapp <jaknapp8+aur@gmail.com>
# Contributor: Christopher Jeffrey
# URL: https://github.com/handshake-org/hnsd
# Upstream: https://github.com/handshake-org/hnsd

pkgname=hnsd-git
pkgver=1.0.0.5.g1b47849
pkgrel=1
pkgdesc='SPV resolver daemon for the Handshake network. Written in C for speed/size/embedability.'
arch=('i686' 'x86_64')
url='http://handshake.org/'
license=('MIT')
depends=('libuv' 'unbound')
makedepends=('git' 'gcc' 'make')
provides=('hnsd')
conflicts=('hnsd')
source=("$pkgname::git+https://github.com/handshake-org/hnsd.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe | sed 's/^v//;s/-/./g'
  #echo 0.0.0.g$(git rev-parse --short HEAD)
}

build() {
  cd "$pkgname"
  ./autogen.sh
  ./configure
  make
}

package() {
  cd "$pkgname"
  install -Dm655 hnsd "$pkgdir/usr/bin/hnsd"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}