diff options
author | bigshans | 2022-12-19 16:09:52 +0800 |
---|---|---|
committer | bigshans | 2022-12-19 16:09:52 +0800 |
commit | 21efe2b234b91631834bd51ac2dde06e74c03c90 (patch) | |
tree | f3fcd5bea42a6d94561bd3b2af6f1b06a6355ab8 | |
parent | a730adf38040a9b8b2562475a04c2a1467e069f1 (diff) | |
download | aur-21efe2b234b91631834bd51ac2dde06e74c03c90.tar.gz |
update: update to v3.6.0, and now it's really git package
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 21 insertions, 10 deletions
@@ -1,17 +1,16 @@ pkgbase = boxcli-git pkgdesc = The CLI for Box.com - pkgver = 2.4.0 + pkgver = v3.6.0.r8.gd94ab35 pkgrel = 1 epoch = 1 url = https://box.com arch = any license = Apache makedepends = git - makedepends = nodejs>=8.0.0 makedepends = npm + depends = nodejs>=8.0.0 provides = box source = git+https://www.github.com/box/boxcli md5sums = SKIP pkgname = boxcli-git - @@ -1,28 +1,40 @@ -# Maintainer: Zach Zundel <me+aur at zachzundel dot com> +# Maintainer: bigshans <me+aur at bigshans dot com> # Contributor: Christian Sarazin <archlinux at offlinehoster dot de> pkgname=boxcli-git -pkgver=2.4.0 +pkgver=v3.6.0.r8.gd94ab35 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') +makedepends=('git' 'npm') +depends=('nodejs>=8.0.0') provides=('box') options=() install= source=("git+https://www.github.com/box/boxcli") md5sums=('SKIP') +pkgver() { + cd "${pkgname%*-git}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + build() { - cd boxcli + cd "$srcdir"/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 + cd "$srcdir"/boxcli/dist/box-v* + install -d "$pkgdir"/usr/lib + install -d "$pkgdir"/usr/bin + rm box-v*-linux-x64.tar.gz + tar xvf box-v*.tar.gz --directory "$pkgdir"/usr/lib + ln -sf /usr/lib/box/bin/box "$pkgdir"/usr/bin/box } |