summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d65003d21ee038442cc4eb3aa1e5f45462be658 (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
# Maintainer: palkeo < arch at palkeo dot com >
# Contributor: bluebugs < cedric dot bail at free dot fr >
pkgname=ganache-cli
pkgver=6.12.2
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=('SKIP')
provides=('ganache-cli')
optdepends=('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"
}