[arch-commits] Commit in python-elementpath/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 15:26:11 UTC 2019
Date: Friday, October 25, 2019 @ 15:26:11
Author: foutrelis
Revision: 519026
archrelease: copy trunk to community-staging-any
Added:
python-elementpath/repos/community-staging-any/
python-elementpath/repos/community-staging-any/PKGBUILD
(from rev 519025, python-elementpath/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-elementpath/repos/community-staging-any/PKGBUILD (from rev 519025, python-elementpath/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:26:11 UTC (rev 519026)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-elementpath
+pkgver=1.3.1
+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=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-xmlschema')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/elementpath/archive/v$pkgver.tar.gz")
+sha512sums=('14688c0c5f77f1ed236f8f97a72770ee5536b4060e4de273a5d74006a6f48ee4ee0662dc9607b1685cefdc4d439ee60aa0f18f60ea18e8d525f319558148ec71')
+
+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