Date: Wednesday, July 6, 2022 @ 17:51:05 Author: grawlinson Revision: 1246742
addpkg: python-pydrive2 Added: python-pydrive2/ python-pydrive2/repos/ python-pydrive2/trunk/ python-pydrive2/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: python-pydrive2/trunk/PKGBUILD =================================================================== --- python-pydrive2/trunk/PKGBUILD (rev 0) +++ python-pydrive2/trunk/PKGBUILD 2022-07-06 17:51:05 UTC (rev 1246742) @@ -0,0 +1,40 @@ +# Maintainer: George Rawlinson <[email protected]> + +pkgname=python-pydrive2 +_pkgname="${pkgname#python-}" +pkgver=1.10.1 +pkgrel=1 +pkgdesc='Google Drive API Python wrapper library (maintained fork of PyDrive)' +arch=('any') +url='https://github.com/iterative/PyDrive2' +license=('Apache') +depends=( + 'python' + 'python-google-api-python-client' + 'python-six' + 'python-oauth2client' + 'python-pyaml' + 'python-pyopenssl' +) +makedepends=('git' 'python-setuptools') +_commit='0547b42833f821230316e7e9d22511cfde004e4b' +source=("$pkgname::git+$url#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgname" + + python setup.py build +} + +package() { + cd "$pkgname" + + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +}
