[arch-commits] Commit in python-elementpath/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Dec 31 10:10:09 UTC 2019
Date: Tuesday, December 31, 2019 @ 10:10:08
Author: felixonmars
Revision: 545508
archrelease: copy trunk to community-testing-any
Added:
python-elementpath/repos/community-testing-any/
python-elementpath/repos/community-testing-any/PKGBUILD
(from rev 545507, python-elementpath/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-elementpath/repos/community-testing-any/PKGBUILD (from rev 545507, python-elementpath/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-12-31 10:10:08 UTC (rev 545508)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-elementpath
+pkgver=1.4.0
+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=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-xmlschema')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/elementpath/archive/v$pkgver.tar.gz")
+sha512sums=('2fc3b2f94b3773bae200bb2eef8113e37463e410632ebcb59d84cec9ce38853c8b175b4d3e1dc87ed510389aa8ce4b7cbd2f40e5713591a6d5a1dbb0e3a0b177')
+
+build() {
+ cd elementpath-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd elementpath-$pkgver
+ python setup.py pytest || warning "missing it_IT locale for testing"
+}
+
+package() {
+ cd elementpath-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list