Date: Wednesday, April 5, 2023 @ 19:06:40
  Author: felixonmars
Revision: 1437922

archrelease: copy trunk to community-staging-any

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

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

Copied: python-elementpath/repos/community-staging-any/PKGBUILD (from rev 
1437921, python-elementpath/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 19:06:40 UTC (rev 1437922)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-elementpath
+pkgver=4.1.0
+_commit=67e9fbee98c5b144db9fdc8b9cb0b5d09b660b7a
+pkgrel=2
+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