summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0735a8e3effec9aedf9a8032cdb49a76a6b3e578 (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
# Maintainer: bluebugs < cedric dot bail at free dot fr >
pkgname=ganache-cli
pkgver=6.0.3
pkgrel=1
pkgdesc='Personal blockchain for Ethereum development.'
url='https://github.com/trufflesuite/ganache-cli'
arch=('any')
license=('MIT')
source=("https://registry.npmjs.org/ganache-cli/-/ganache-cli-${pkgver}.tgz")
noextract=("ganache-cli-${pkgver}.tgz")
makedepends=('npm')
depends=('nodejs')
conflicts=('ganache-cli-git')
sha1sums=('8b9da149707daa29c69da26f0582b89c90113b9c')
provides=('ganache-cli')
optdepends=('mocha: testing support'
            'testrpc: testing support'
            'geth: contract deployment'
            'parity: contract deployment')

package() {
  npm install -g --production --prefix "$pkgdir/usr" "ganache-cli-${pkgver}.tgz"
  tar -xf "ganache-cli-${pkgver}.tgz" package/LICENSE
  install -D -m644 package/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}