summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70fe0b0614c1cf3f2b67a4aba06ec1475d3f3472 (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
# Maintainer: Zach Zundel <me+aur at zachzundel dot com>
# Contributor: Christian Sarazin <archlinux at offlinehoster dot de>
pkgname=boxcli-git
pkgver=2.4.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.4.0
    sudo tar xvf box-v2.4.0-linux-x64.tar.gz --directory /usr/lib
    sudo ln -sf /usr/lib/box/bin/box /usr/bin/box
}