Date: Sunday, May 31, 2020 @ 18:40:25
  Author: jelle
Revision: 637711

archrelease: copy trunk to community-any

Added:
  python-meilisearch/repos/community-any/
  python-meilisearch/repos/community-any/PKGBUILD
    (from rev 637709, python-meilisearch/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-meilisearch/repos/community-any/PKGBUILD (from rev 637709, 
python-meilisearch/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2020-05-31 18:40:25 UTC (rev 637711)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <je...@archlinux.org>
+
+pkgname=python-meilisearch
+pkgver=0.10.1
+pkgrel=1
+pkgdesc='Python client for MeiliSearch API'
+arch=(any)
+license=('MIT')
+url='https://pypi.org/project/meilisearch/'
+depends=(python)
+makedepends=(python-requests)
+checkdepends=('python-pytest' 'python-pytest-ordering')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/meilisearch/meilisearch-python/archive/v${pkgver}.tar.gz)
+sha512sums=('46c7f2ae4d72fd84c8c2d1c6d994c8762e9829d8c149b78198b5bda99ce4928e61e17762ffd0fdb23b48dd695adc4c97669e2c1b10525886c09e3f3684fe2e03')
+
+build() {
+  cd "meilisearch-python-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  # requires running meilisearch 
https://github.com/meilisearch/meilisearch-python/blob/master/.github/workflows/test.yml#L20
+  cd "meilisearch-python-${pkgver}"
+  #pytest .
+}
+
+package() {
+  cd "meilisearch-python-${pkgver}"
+  python setup.py install -O1 --root="${pkgdir}"
+
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+}

Reply via email to