summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99a403f8d7d8b4886b495ae1b0fb37d2c16d30c8 (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: MikoĊ‚aj Baranowski <mikolajb@gmail.com>

pkgname=dbxcli
pkgver=2.0.0
pkgrel=1
pkgdesc='A command line client for Dropbox built using the Go SDK'
license=('Apache')
arch=('x86_64' 'i686')
url='https://github.com/dropbox/dbxcli'
depends=()
makedepends=('go')

source=("https://github.com/dropbox/dbxcli/archive/v${pkgver}.zip")
md5sums=('dd809780a007ddad50ac5b9e6c313aaa')

build() {
  msg2 'Compiling...'

  mkdir -p ${srcdir}/src/github.com/dropbox
  mv -f ${pkgname}-${pkgver} ${srcdir}/src/github.com/dropbox/${pkgname}
  GOPATH=${srcdir} go build -o ${pkgname} github.com/dropbox/${pkgname}
}

package() {
  msg2 'Installing...'

  install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
}