blob: 3b9cda68bcaa437f397986f78d8ac11c7460df08 (
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
|
pkgname=hyperledger-caliper-git
pkgver=116.1ac646a
pkgrel=1
pkgdesc="A blockchain benchmark framework to measure performance of multiple blockchain solutions"
arch=(i686 x86_64)
url="https://github.com/hyperledger/caliper"
license=('APACHE')
groups=('hyperledger')
depends=('nodejs')
makedepends=('git' 'npm')
source=("${pkgname%%-git}::git+https://github.com/hyperledger/caliper.git"
start.sh)
package() {
cd $srcdir/${pkgname%%-git}
npm install
mkdir -p "$pkgdir/usr/lib/node_modules/caliper/"
cp -r * "$pkgdir/usr/lib/node_modules/caliper/"
install -Dm775 ../start.sh "$pkgdir/usr/bin/caliper"
}
pkgver() {
cd $srcdir/${pkgname%%-git}
echo $(git rev-list --count master).$(git rev-parse --short master)
}
md5sums=('SKIP'
'4d25cd7d1853de9608554b906f0cbef4')
|