summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD27
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fd1dcf5b224
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = boxcli-git
+ pkgdesc = The CLI for Box.com
+ pkgver = 2.0.0
+ pkgrel = 1
+ epoch = 1
+ url = https://box.com
+ arch = any
+ license = Apache
+ makedepends = git
+ makedepends = nodejs>=8.0.0
+ makedepends = npm
+ provides = box
+ source = git+https://www.github.com/box/boxcli
+ md5sums = SKIP
+
+pkgname = boxcli-git
+
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
+}