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 808B

1234567891011121314151617181920212223242526272829
  1. # Maintainer: John Jenkins <twodopeshaggy@gmail.com>
  2. # Contributor: Timofey Titovets <nefelim4ag@gmail.com>
  3. pkgname=drive-git
  4. pkgver=r261.6afbeff
  5. pkgrel=1
  6. pkgdesc="Drive is a tiny program to pull or push Google Drive files. You need go1.2 installed in order to build the program."
  7. arch=('any')
  8. url="https://github.com/odeke-em/drive"
  9. license=('MIT')
  10. makedepends=('go' 'git' 'mercurial')
  11. options=('!strip' '!emptydirs')
  12. source=($pkgname::git+https://github.com/odeke-em/drive.git)
  13. md5sums=('SKIP')
  14. _gourl=github.com/odeke-em/drive/cmd/drive
  15. pkgver() {
  16. cd $srcdir/$pkgname
  17. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  18. }
  19. build() {
  20. export GOPATH=$srcdir
  21. go get $_gourl
  22. }
  23. package() {
  24. mkdir -p "$pkgdir/usr/bin"
  25. install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"
  26. }