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 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Maintainer: John Jenkins <twodopeshaggy@gmail.com>
  2. pkgname=drive
  3. pkgver=0.2.6
  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. depends=('hicolor-icon-theme' 'gtk-update-icon-cache')
  10. makedepends=('go' 'git')
  11. conflicts=('drive-git')
  12. options=('!strip' '!emptydirs')
  13. install=$pkgname.install
  14. source=("https://github.com/odeke-em/$pkgname/archive/v$pkgver.tar.gz")
  15. sha256sums=('f342da13797f039472586e0474997279318a7e80d34fb8de32b2e7a5f44a06c6')
  16. prepare() {
  17. mkdir -p "$srcdir/go"
  18. export GOPATH="$srcdir/go"
  19. go get github.com/odeke-em/drive/cmd/drive
  20. go get github.com/odeke-em/drive/config
  21. go get github.com/rakyll/command
  22. go get github.com/odeke-em/drive/src
  23. go get github.com/odeke-em/ripper/src
  24. go get github.com/odeke-em/xon/pkger/src
  25. export GOPATH="$srcdir/$pkgname-$pkgver"
  26. go get github.com/odeke-em/drive/drive-gen
  27. cd $srcdir/$pkgname-$pkgver/bin/
  28. ./drive-gen
  29. }
  30. package() {
  31. cd $srcdir/$pkgname-$pkgver/bin/
  32. install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
  33. cd "$srcdir/$pkgname-$pkgver"
  34. mkdir -p $pkgdir/usr/share/licenses/$pkgname
  35. install -m 0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/
  36. mkdir -p "$pkgdir/usr/share/icons/hicolor/128x128/mimetypes"
  37. cp $srcdir/$pkgname-$pkgver/icons/*.png $pkgdir/usr/share/icons/hicolor/128x128/mimetypes
  38. mkdir -p "$pkgdir/usr/share/icons/hicolor/scalable/mimetypes"
  39. cp $srcdir/$pkgname-$pkgver/icons/*.svg $pkgdir/usr/share/icons/hicolor/scalable/mimetypes
  40. rm -r "$srcdir/go"
  41. }
  42. # vim:set ts=2 sw=2 et: