blob: c7f3964581caba5bb4bbcd5e0f0c7157e911ca39 (
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
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.5.1
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="3f5e1d88bd821fcb8b86cf6ec4dd66afa300e3d2934e33335622378b8b1b248216e48d26e970914c7d0ea01cc54e66af4ced4c75883e496de66c43a485c9c6e2 h1-cli-1.5.1.tar.gz"
|