You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PKGBUILD 908B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Maintainer: John Jenkins <twodopeshaggy@gmail.com>
  2. pkgname=drive
  3. pkgver=0.1.5
  4. pkgrel=1
  5. pkgdesc="Pull or push Google Drive files"
  6. arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
  7. url="http://github.com/odeke-em/drive"
  8. license=('Apache')
  9. makedepends=('go' 'git' 'mercurial')
  10. options=('!strip' '!emptydirs')
  11. source=("https://github.com/odeke-em/$pkgname/archive/v$pkgver.tar.gz")
  12. sha256sums=('f1c6f6c45bf808327c0b2ec52701b270f4ee04b186a1228bd10ab07ffcf91297')
  13. prepare() {
  14. mkdir -p "$srcdir/go"
  15. export GOPATH="$srcdir/go"
  16. go get github.com/odeke-em/drive/cmd/drive
  17. go get github.com/odeke-em/drive/config
  18. go get github.com/rakyll/command
  19. }
  20. build() {
  21. export GOPATH="$srcdir/go"
  22. cd "$pkgname-$pkgver/cmd/drive"
  23. msg2 'Building drive'
  24. go build -o "$pkgname" main.go
  25. }
  26. package() {
  27. cd "$pkgname-$pkgver/cmd/drive"
  28. install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
  29. }
  30. # vim:set ts=2 sw=2 et: