Date: Friday, August 14, 2020 @ 10:56:46 Author: felixonmars Revision: 678565
archrelease: copy trunk to community-testing-any Added: python-elementpath/repos/community-testing-any/ python-elementpath/repos/community-testing-any/PKGBUILD (from rev 678564, python-elementpath/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: python-elementpath/repos/community-testing-any/PKGBUILD (from rev 678564, python-elementpath/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2020-08-14 10:56:46 UTC (rev 678565) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-elementpath +pkgver=2.0.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-lxml' 'python-pytest' 'python-xmlschema') +source=("$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/elementpath/archive/v$pkgver.tar.gz") +sha512sums=('9006b681c27189b2ad2dcf216cbf34985f5cfa9d72d11710d30f8926063930749f0d89640d6b9cbfee294671fc6daf16db3cd23215d522668066ef5baaca9e96') + +build() { + cd elementpath-$pkgver + python setup.py build +} + +check() { + cd elementpath-$pkgver + python -m pytest +} + +package() { + cd elementpath-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}