[arch-commits] Commit in (4 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Sat Dec 18 21:04:19 UTC 2021
Date: Saturday, December 18, 2021 @ 21:04:19
Author: alerque
Revision: 1077747
Migrate python-crate from AUR
Added:
python-crate/
python-crate/repos/
python-crate/trunk/
python-crate/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Added: python-crate/trunk/PKGBUILD
===================================================================
--- python-crate/trunk/PKGBUILD (rev 0)
+++ python-crate/trunk/PKGBUILD 2021-12-18 21:04:19 UTC (rev 1077747)
@@ -0,0 +1,29 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+_pyname=crate
+pkgname=python-$_pyname
+pkgver=0.26.0
+pkgrel=3
+pkgdesc="A Python client library for CrateDB"
+arch=(any)
+url="https://github.com/crate/crate-python"
+license=(Apache)
+depends=(python
+ python-urllib3)
+makedepends=(python-setuptools)
+optdepends=(python-sqlalchemy)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
+sha256sums=('6f650c2efe250b89bf35f8fe3211eb37ebc8d76f7a9c09bd73db3076708fa2fc')
+
+build() {
+ cd "$_archive"
+ python setup.py build
+}
+
+package() {
+ cd "$_archive"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+ install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" {CONTRIBUTING,DEVELOP,README}.rst
+}
More information about the arch-commits
mailing list