From f350b2f35858e237747aeb909e76d35539d4342d Mon Sep 17 00:00:00 2001 From: Leo Date: Wed, 28 Aug 2019 23:51:40 -0300 Subject: community/py3-google-api-python-client: move from main --- community/py3-google-api-python-client/APKBUILD | 49 +++++++++++++++++++++++++ main/py3-google-api-python-client/APKBUILD | 49 ------------------------- 2 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 community/py3-google-api-python-client/APKBUILD delete mode 100644 main/py3-google-api-python-client/APKBUILD diff --git a/community/py3-google-api-python-client/APKBUILD b/community/py3-google-api-python-client/APKBUILD new file mode 100644 index 0000000000..24ff8e5007 --- /dev/null +++ b/community/py3-google-api-python-client/APKBUILD @@ -0,0 +1,49 @@ +# Maintainer: Roberto Oliveira +pkgname=py-google-api-python-client +_pkgname=google-api-python-client +pkgver=1.7.9 +pkgrel=0 +pkgdesc="Google API Client Library for Python" +url="https://github.com/google/google-api-python-client" +options="!check" # Depends on py2-unittest2 which is in testing +arch="noarch" +license="Apache-2.0" +depends="py-httplib2 py-oauth2client py-uritemplate py-six" +makedepends="py-setuptools py3-setuptools" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +sha512sums="2874c9c9bc42d5d1f857b3b58c3676b362045493dab657cde44bcd9dfb7b9db9ff67d1d1a7b1ed4003a35b4b5bf975ef705e3ea3565585a98d37dd06096831cc google-api-python-client-1.7.9.tar.gz" diff --git a/main/py3-google-api-python-client/APKBUILD b/main/py3-google-api-python-client/APKBUILD deleted file mode 100644 index 24ff8e5007..0000000000 --- a/main/py3-google-api-python-client/APKBUILD +++ /dev/null @@ -1,49 +0,0 @@ -# Maintainer: Roberto Oliveira -pkgname=py-google-api-python-client -_pkgname=google-api-python-client -pkgver=1.7.9 -pkgrel=0 -pkgdesc="Google API Client Library for Python" -url="https://github.com/google/google-api-python-client" -options="!check" # Depends on py2-unittest2 which is in testing -arch="noarch" -license="Apache-2.0" -depends="py-httplib2 py-oauth2client py-uritemplate py-six" -makedepends="py-setuptools py3-setuptools" -subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build -} - -package() { - mkdir -p "$pkgdir" -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-}" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 -} - -sha512sums="2874c9c9bc42d5d1f857b3b58c3676b362045493dab657cde44bcd9dfb7b9db9ff67d1d1a7b1ed4003a35b4b5bf975ef705e3ea3565585a98d37dd06096831cc google-api-python-client-1.7.9.tar.gz" -- cgit v1.2.3