Date: Monday, May 31, 2021 @ 17:26:27
  Author: felixonmars
Revision: 952845

archrelease: copy trunk to community-any

Added:
  python-dict2xml/repos/community-any/
  python-dict2xml/repos/community-any/PKGBUILD
    (from rev 952844, python-dict2xml/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-dict2xml/repos/community-any/PKGBUILD (from rev 952844, 
python-dict2xml/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2021-05-31 17:26:27 UTC (rev 952845)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=python-dict2xml
+pkgver=1.7.0
+_commit=ea9282f263b6588d59ac6998bf2319002527bd13
+pkgrel=1
+pkgdesc="Small utility to convert a python dictionary into an XML string"
+arch=('any')
+url="https://github.com/delfick/python-dict2xml";
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-noseofyeti')
+source=("https://github.com/delfick/python-dict2xml/archive/$_commit/$pkgname-$_commit.tar.gz";)
+sha512sums=('1fc2a25c903adca106374ea9181b57da25f2166eed9cc45a3ebcc4e7d90a6f20f4fa9f541048f35ab93af36e6ba55786b989e058443f7a6cbaf9a3838a1f4d0a')
+
+build() {
+  cd python-dict2xml-$_commit
+  python setup.py build
+}
+
+check() {
+  cd python-dict2xml-$_commit
+  pytest
+}
+
+package() {
+  cd python-dict2xml-$_commit
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to