Date: Thursday, February 2, 2023 @ 19:06:27
  Author: felixonmars
Revision: 1391995

archrelease: copy trunk to community-testing-any

Added:
  python-elementpath/repos/community-testing-any/
  python-elementpath/repos/community-testing-any/PKGBUILD
    (from rev 1391993, python-elementpath/trunk/PKGBUILD)

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

Copied: python-elementpath/repos/community-testing-any/PKGBUILD (from rev 
1391993, python-elementpath/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2023-02-02 19:06:27 UTC (rev 1391995)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-elementpath
+pkgver=4.0.0
+_commit=8b4674ad878206bea9cff74f25bd3fd80739955a
+pkgrel=1
+pkgdesc="XPath 1.0/2.0 parsers and selectors for ElementTree and lxml"
+url="https://github.com/sissaschool/elementpath";
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('git' 'python-setuptools')
+checkdepends=('python-lxml' 'python-pytest' 'python-xmlschema')
+source=("git+https://github.com/sissaschool/elementpath.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd elementpath
+  python setup.py build
+}
+
+check() {
+  cd elementpath
+  python -m pytest
+}
+
+package() {
+  cd elementpath
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to