summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikołaj Baranowski2016-12-03 12:11:47 +0100
committerMikołaj Baranowski2016-12-03 12:13:15 +0100
commitb1cb116c236098428e38e854f6ffbdf9edbfa7cb (patch)
treec81f1aab56eafa524c0a39f133b2545f9ed91e2d
parentb714bed4ba3061aa40f0c31c9f895bc0e6436819 (diff)
downloadaur-b1cb116c236098428e38e854f6ffbdf9edbfa7cb.tar.gz
update to version 1.4.0
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD24
-rw-r--r--import-patch.txt11
3 files changed, 10 insertions, 33 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 12927e52512..277bce9fb1b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,14 @@
pkgbase = dbxcli
pkgdesc = A command line client for Dropbox built using the Go SDK
- pkgver = 0.1.0
+ pkgver = 1.4.0
pkgrel = 1
url = https://github.com/dropbox/dbxcli
arch = x86_64
arch = i686
license = Apache
makedepends = go
- source = https://github.com/dropbox/dbxcli/archive/v0.1.0.zip
- source = import-patch.txt
- md5sums = 97a71c85733d5309bc6dfdbd7f11481e
- md5sums = SKIP
+ source = https://github.com/dropbox/dbxcli/archive/v1.4.0.zip
+ md5sums = a900192623494cbe4edbd941fe78491c
pkgname = dbxcli
diff --git a/PKGBUILD b/PKGBUILD
index f669f7b83da..5ac2f259896 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Mikołaj Baranowski <mikolajb@gmail.com>
pkgname=dbxcli
-pkgver=0.1.0
+pkgver=1.4.0
pkgrel=1
pkgdesc='A command line client for Dropbox built using the Go SDK'
license=('Apache')
@@ -10,29 +10,19 @@ url='https://github.com/dropbox/dbxcli'
depends=()
makedepends=('go')
-source=("https://github.com/dropbox/dbxcli/archive/v0.1.0.zip"
- "import-patch.txt")
-md5sums=('97a71c85733d5309bc6dfdbd7f11481e'
- 'SKIP')
-_gosdk=github.com/dropbox/dropbox-sdk-go-unofficial
-_cobra=github.com/spf13/cobra
-_ioprogress=github.com/mitchellh/ioprogress
+source=("https://github.com/dropbox/dbxcli/archive/v${pkgver}.zip")
+md5sums=('a900192623494cbe4edbd941fe78491c')
build() {
msg2 'Compiling...'
- GOPATH="$srcdir" go get -fix -v -x ${_gosdk}/
- GOPATH="$srcdir" go get -fix -v -x ${_cobra}/
- GOPATH="$srcdir" go get -fix -v -x ${_ioprogress}/
-
- ls
- patch ${pkgname}-${pkgver}/main.go import-patch.txt
- cd ${pkgname}-${pkgver}
- GOPATH="$GOPATH:$srcdir" go build -o ${pkgname}
+ mkdir -p src/github.com/dropbox
+ mv -f ${pkgname}-${pkgver} src/github.com/dropbox/${pkgname}
+ GOPATH=${srcdir} go build -o ${pkgname} github.com/dropbox/${pkgname}
}
package() {
msg2 'Installing...'
- install -Dm755 ${pkgname}-${pkgver}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
+ install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
}
diff --git a/import-patch.txt b/import-patch.txt
deleted file mode 100644
index 27da43a74c3..00000000000
--- a/import-patch.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- main.go 2016-03-10 01:47:48.000000000 +0100
-+++ main.go2 2016-03-14 11:20:17.326143866 +0100
-@@ -14,7 +14,7 @@
-
- package main
-
--import "github.com/dropbox/dbxcli/cmd"
-+import "./cmd"
-
- func main() {
- cmd.Execute()