aboutsummaryrefslogtreecommitdiffstats
path: root/testing/h1-cli/APKBUILD
diff options
context:
space:
mode:
authorAdam Dobrawy <naczelnik@jawnosc.tk>2019-05-15 00:55:39 +0200
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-19 11:55:44 +0000
commit130087fd8a036cf3521de07d849c559f496cd013 (patch)
tree7d2efb569e8b4379114702132e6c38dc8ce42a8e /testing/h1-cli/APKBUILD
parentbcc412aacfdd7b740c56cad2ab53f7f234f7c90f (diff)
downloadaports-130087fd8a036cf3521de07d849c559f496cd013.tar.bz2
aports-130087fd8a036cf3521de07d849c559f496cd013.tar.xz
testing/h1-cli: new aport
Diffstat (limited to 'testing/h1-cli/APKBUILD')
-rw-r--r--testing/h1-cli/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/h1-cli/APKBUILD b/testing/h1-cli/APKBUILD
new file mode 100644
index 0000000000..90ccc0ecda
--- /dev/null
+++ b/testing/h1-cli/APKBUILD
@@ -0,0 +1,42 @@
+# 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"
+builddir="$srcdir/$pkgname-$pkgver"
+options="!strip"
+
+build() {
+ cd "$builddir"
+ npm install
+ npm run-script build
+}
+
+check() {
+ [ "$($builddir/dist/$_pkgname-alpine --version)" == "$pkgver" ]
+ [ "$($builddir/dist/rbx-alpine --version)" == "$pkgver" ]
+}
+
+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"