aboutsummaryrefslogtreecommitdiffstats
path: root/testing/h1-cli/APKBUILD
blob: 16b27ece56ccbe7fa3e5a15fd9ae39b782eb95a0 (plain) (blame)
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
# Contributor: Adam Dobrawy <a.dobrawy@hyperone.com>
# Maintainer: Adam Dobrawy <a.dobrawy@hyperone.com>
pkgname=h1-cli
_pkgname=${pkgname/-cli/}
pkgver=1.6.0
pkgrel=0
pkgdesc="Command-line interface for HyperOne platform"
url="https://www.hyperone.com/tools/cli/"
arch="x86_64"
license="MIT"
depends="openssh-client"
makedepends="nodejs npm"
subpackages="rbx-cli:rbx"
source="$pkgname-$pkgver.tar.gz::https://github.com/hyperonecom/$pkgname/archive/v$pkgver.tar.gz"
options="!strip !check"

build() {
	npm install
	npm run-script build
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	cp "$builddir/dist/$_pkgname-alpine" "$pkgdir"/usr/bin/$_pkgname
}

rbx() {
	pkgdesc="Command-line interface for Rootbox platform"
	url="http://rootbox.com/"
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/bin
	cp "$builddir/dist/rbx-alpine" "$subpkgdir"/usr/bin/rbx
}

sha512sums="10864d8e4727f064d2316f8b11234996c141165aa1fd4b97211d92189c7887b2456e9e991a0a77b0c14c221186d5cacaadeb8f88d350d90f7282ceafa18c2771  h1-cli-1.6.0.tar.gz"