summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fcc5ae5b046
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Zach Zundel <me+aur at zachzundel dot com>
+pkgname=boxcli-git
+pkgver=2.0.0
+pkgrel=1
+epoch=1
+arch=('any')
+pkgdesc="The CLI for Box.com"
+url="https://box.com"
+license=('Apache')
+makedepends=('git' 'nodejs>=8.0.0' 'npm')
+provides=('box')
+options=()
+install=
+source=("git+https://www.github.com/box/boxcli")
+md5sums=('SKIP')
+
+build() {
+ cd boxcli
+ npm install
+ ./node_modules/.bin/oclif-dev pack --targets=linux-x64
+}
+
+package() {
+ cd boxcli/dist/box-v2.0.0
+ sudo tar xvf box-v2.0.0-linux-x64.tar.gz --directory /usr/lib
+ sudo ln -s /usr/lib/box/bin/box /usr/bin/box
+}