summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD34
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..13123bdea7a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-google-cloud-core
+ pkgdesc = Google Cloud API client core library
+ pkgver = 0.29.1
+ pkgrel = 1
+ url = https://pypi.org/project/google-cloud-core/
+ arch = any
+ license = APACHE
+ makedepends = python-setuptools
+ depends = python-google-api-core>=1.0.0
+ options = !emptydirs
+ source = https://files.pythonhosted.org/packages/8f/79/aba910c76b12c13e31be779bb580556757b47ee331efc10e30c4785a2156/google-cloud-core-0.29.1.tar.gz
+ sha256sums = d85b1aaaf3bad9415ad1d8ee5eadce96d7007a82f13ce0a0629a003a11e83f29
+
+pkgname = python-google-cloud-core
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..924dfb95c20
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+*.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..26271fa2512
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>
+
+_srcname=google-cloud-core
+
+pkgname=python-google-cloud-core
+pkgver=0.29.1
+pkgrel=1
+pkgdesc="Google Cloud API client core library"
+arch=('any')
+url="https://pypi.org/project/google-cloud-core/"
+license=('APACHE')
+depends=(
+ 'python-google-api-core>=1.0.0'
+)
+makedepends=('python-setuptools')
+options=(!emptydirs)
+source=(
+ "https://files.pythonhosted.org/packages/8f/79/aba910c76b12c13e31be779bb580556757b47ee331efc10e30c4785a2156/google-cloud-core-${pkgver}.tar.gz"
+)
+sha256sums=(
+ 'd85b1aaaf3bad9415ad1d8ee5eadce96d7007a82f13ce0a0629a003a11e83f29'
+)
+
+build() {
+ cd "${srcdir}/${_srcname}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_srcname}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+ install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}