[arch-commits] Commit in python-xmlschema/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 21:13:07 UTC 2021
Date: Tuesday, November 30, 2021 @ 21:13:06
Author: foutrelis
Revision: 1058868
archrelease: copy trunk to community-staging-any
Added:
python-xmlschema/repos/community-staging-any/
python-xmlschema/repos/community-staging-any/PKGBUILD
(from rev 1058866, python-xmlschema/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-xmlschema/repos/community-staging-any/PKGBUILD (from rev 1058866, python-xmlschema/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 21:13:06 UTC (rev 1058868)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-xmlschema
+pkgver=1.2.5
+pkgrel=2
+pkgdesc="An XML Schema validator and decoder"
+url="https://github.com/sissaschool/xmlschema"
+license=('MIT')
+arch=('any')
+depends=('python-elementpath')
+makedepends=('python-pip')
+checkdepends=('python-lxml')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/xmlschema/archive/v$pkgver.tar.gz")
+sha512sums=('086c0b1544b492807edd2b1ea0ac791d55d118834846efd57fbbfb6b7d5244529150ffa3c1074de85a7c030c6b33721f41743e9a1cd672e24e92ce0a3dfd662d')
+
+prepare() {
+ sed -i 's/~=/>=/' xmlschema-$pkgver/setup.py
+}
+
+build() {
+ cd xmlschema-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd xmlschema-$pkgver
+ PYTHONPATH="$PWD/build/lib" python -m unittest
+}
+
+package() {
+ cd xmlschema-$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