summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb3a3bb276cc05264e3fcad4db080ed630529fd7 (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
# Maintainer: Jonathan Knapp <jaknapp8+aur@gmail.com>
# Contributor: Christopher Jeffrey
# URL: https://github.com/bcoin-org/bcoin
# Upstream: https://github.com/bcoin-org/bcoin

_pkgname=bcoin
pkgname=${_pkgname}-git
pkgver=1.0.0.beta.12.100.gf0b43764
pkgrel=1
pkgdesc='An alternative implementation of the bitcoin protocol, written in node.js.'
arch=('i686' 'x86_64')
url='http://bcoin.io/'
license=('MIT')
depends=('nodejs')
makedepends=('git' 'npm' 'python2')
provides=('bcoin')
conflicts=('bcoin')
source=("$pkgname::git+https://github.com/bcoin-org/bcoin.git")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe | sed 's/^v//;s/-/./g'
}

package() {
  cd "$pkgname"
  npm install -g --user root --prefix "$pkgdir"/usr
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}