diff options
author | John ShaggyTwoDope Jenkins | 2015-06-23 01:35:06 -0700 |
---|---|---|
committer | John ShaggyTwoDope Jenkins | 2015-06-23 01:35:06 -0700 |
commit | d19920a0f12deca20cf7d5960532ee64ca02ad78 (patch) | |
tree | bcee239e04e82cb8b5f44c8e946c28082efa7964 | |
download | aur-d19920a0f12deca20cf7d5960532ee64ca02ad78.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | drive-git.install | 11 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..812264e73087 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = drive-git + pkgdesc = Drive is a tiny program to pull or push Google Drive files. You need go1.2 installed in order to build the program. + pkgver = r369.a4cfe9a + pkgrel = 1 + url = https://github.com/odeke-em/drive + install = drive-git.install + arch = any + license = Apache + makedepends = go + makedepends = git + depends = hicolor-icon-theme + depends = gtk-update-icon-cache + conflicts = drive + options = !strip + options = !emptydirs + source = drive-git::git+https://github.com/odeke-em/drive.git + md5sums = SKIP + +pkgname = drive-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a8da86f4f6a1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: John Jenkins <twodopeshaggy@gmail.com> +# Contributor: Timofey Titovets <nefelim4ag@gmail.com> + +pkgname=drive-git +pkgver=r369.a4cfe9a +pkgrel=1 +pkgdesc="Drive is a tiny program to pull or push Google Drive files. You need go1.2 installed in order to build the program." +arch=('any') +url="https://github.com/odeke-em/drive" +license=('Apache') +depends=('hicolor-icon-theme' 'gtk-update-icon-cache') +makedepends=('go' 'git') +conflicts=('drive') +options=('!strip' '!emptydirs') +install=$pkgname.install +source=($pkgname::git+https://github.com/odeke-em/drive.git) +md5sums=('SKIP') +_gourl=github.com/odeke-em/drive/drive-gen +pkgver() { + cd $srcdir/$pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + export GOPATH=$srcdir + go get $_gourl + cd $srcdir/bin/ + ./drive-gen +} + +package() { + mkdir -p "$pkgdir/usr/bin" + install -p -m755 $srcdir/bin/drive "$pkgdir/usr/bin" + + cd "$srcdir/$pkgname" + mkdir -p $pkgdir/usr/share/licenses/$pkgname + install -m 0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/ + mkdir -p "$pkgdir/usr/share/icons/hicolor/128x128/mimetypes" + cp $srcdir/$pkgname/icons/*.png $pkgdir/usr/share/icons/hicolor/128x128/mimetypes + mkdir -p "$pkgdir/usr/share/icons/hicolor/scalable/mimetypes" + cp $srcdir/$pkgname/icons/*.svg $pkgdir/usr/share/icons/hicolor/scalable/mimetypes + +} diff --git a/drive-git.install b/drive-git.install new file mode 100644 index 000000000000..0e29f595e033 --- /dev/null +++ b/drive-git.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install "$1" +} + +post_remove() { + post_install "$1" +}
\ No newline at end of file |