[arch-commits] Commit in python-xmljson/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 14:54:10 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:54:10
Author: felixonmars
Revision: 1059500
archrelease: copy trunk to community-staging-any
Added:
python-xmljson/repos/community-staging-any/
python-xmljson/repos/community-staging-any/PKGBUILD
(from rev 1059499, python-xmljson/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-xmljson/repos/community-staging-any/PKGBUILD (from rev 1059499, python-xmljson/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:54:10 UTC (rev 1059500)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-xmljson
+pkgver=0.2.1
+_commit=20817db7eecd057b23ed7055d32bb339c3c5a496
+pkgrel=2
+pkgdesc="Converts XML into JSON/Python dicts/arrays and vice-versa."
+url="https://github.com/sanand0/xmljson"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-lxml')
+source=("https://github.com/sanand0/xmljson/archive/$_commit/$pkgname-$_commit.tar.gz")
+sha512sums=('253d3e7dd8d7bf27ded9887ad8027f542eaac9bdf06bcefcbd8ea05f3d93208a549e7cbdc3af6b756a9a5198ea0eb0b3883883a1868e4bdcdcf02fc303e623c8')
+
+build() {
+ cd xmljson-$_commit
+ python setup.py build
+}
+
+check() {
+ cd xmljson-$_commit
+ python setup.py test
+}
+
+package() {
+ cd xmljson-$_commit
+ 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