Want more features on Pastebin? Sign Up, it's FREE!
Guest

gdrive PKGBUILD

By: a guest on May 15th, 2015  |  syntax: Bash  |  size: 0.97 KB  |  views: 199  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Philipp Klein <philipptheklein@gmail.com>
  2. pkgname=gdrive
  3. pkgver=1.6.1
  4. pkgrel=1
  5. pkgdesc="Command line utility for uploading and downloading single files to your Google Drive"
  6. arch=('i686' 'x86_64')
  7. url="https://github.com/prasmussen/gdrive"
  8. license=('MIT')
  9. groups=()
  10. depends=()
  11. makedepends=(go mercurial)
  12. optdepends=()
  13. provides=()
  14. conflicts=()
  15. replaces=()
  16. backup=()
  17. options=()
  18. install=
  19. changelog=
  20. source=("git+https://github.com/prasmussen/gdrive.git#tag=1.6.1" "LICENSE")
  21. noextract=()
  22.  
  23. prepare() {
  24.     cd "$srcdir/gdrive"
  25.     GOPATH="$srcdir" go get -v -x github.com/prasmussen/gdrive
  26. }
  27.  
  28. build() {
  29.     cd "$srcdir/gdrive"
  30.     GOPATH="$srcdir" go build -ldflags "-W" -o ../bin/"$pkgname"
  31. }
  32.  
  33. package() {
  34.     install -dm755 "$pkgdir/usr/bin"
  35.     install -dm755 "$pkgdir/usr/share/licenses/gdrive"
  36.     install -m755 "$srcdir/bin/gdrive" "$pkgdir/usr/bin"
  37.     install -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/gdrive"
  38. }
  39.  
  40. # vim:sw=4:ts=4:et
clone this paste RAW Paste Data