diff options
author | mschubert | 2015-06-12 12:10:51 +0100 |
---|---|---|
committer | mschubert | 2015-06-12 12:10:51 +0100 |
commit | 13b2cfa393aa9d9037b33f95a0832986a4bbaa23 (patch) | |
tree | 873ff7c3d14b56412fced3bb8532ad8686fa1f50 | |
download | aur-python2-gcat-git.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3ca0caaee4fb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python2-gcat-git + pkgdesc = Interacting with Google Drive spreadsheets from python or the command-line + pkgver = r61.f88aa8f + pkgrel = 1 + url = https://github.com/embr/gcat + arch = any + license = custom + makedepends = git + depends = python2-yaml + depends = python2-google-api-python-client + depends = python2-pandas + source = python2-gcat-git::git+https://github.com/embr/gcat.git + md5sums = SKIP + +pkgname = python2-gcat-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..280ff4dbf5e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Michael Schubert <mschu.dev at gmail> + +pkgname=python2-gcat-git +pkgver=r61.f88aa8f +pkgrel=1 +pkgdesc="Interacting with Google Drive spreadsheets from python or the command-line" +arch=('any') +url="https://github.com/embr/gcat" +license=('custom') +depends=('python2-yaml' 'python2-google-api-python-client' 'python2-pandas') +makedepends=('git') +source=($pkgname::git+https://github.com/embr/gcat.git) +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "$srcdir/$pkgname" + # this is included in python2-google-api-python-client + sed -i "/oauth2client/d" setup.py +} + +package() { + cd "$srcdir/$pkgname" + python2 setup.py install --root="$pkgdir" --optimize=1 + + pydir=`python2 -c "from distutils.sysconfig import get_python_lib; \ + print get_python_lib()"` + install -Dm755 gcat/__init__.py "$pkgdir/$pydir/gcat/__init__.py" + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + msg follow the steps at https://developers.google.com/drive/quickstart-python +} |