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.
 
 
 
 
 
 

42 lines
1.1 KiB

# Maintainer: John Jenkins <twodopeshaggy@gmail.com>
pkgname=drive
pkgver=0.1.9
pkgrel=3
pkgdesc="Pull or push Google Drive files"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
url="http://github.com/odeke-em/drive"
license=('Apache')
makedepends=('go' 'git' 'mercurial')
conflicts=('drive-git')
options=('!strip' '!emptydirs')
source=("https://github.com/odeke-em/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('d02b2b4b7a054838cdbca3735884b1cd6583ade4b60ecf5ad0331a681c82d99b')
prepare() {
mkdir -p "$srcdir/go"
export GOPATH="$srcdir/go"
go get github.com/odeke-em/drive/cmd/drive
go get github.com/odeke-em/drive/config
go get github.com/rakyll/command
}
build() {
export GOPATH="$srcdir/go"
cd "$pkgname-$pkgver/cmd/drive"
msg2 'Building drive'
go build -o "$pkgname" main.go
}
package() {
cd "$srcdir/$pkgname-$pkgver/cmd/drive"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
cd "$srcdir/$pkgname-$pkgver"
mkdir -p $pkgdir/usr/share/licenses/$pkgname
install -m 0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/
rm -r "$srcdir/go"
}
# vim:set ts=2 sw=2 et: