Date: Monday, May 31, 2021 @ 17:26:14 Author: felixonmars Revision: 952844
addpkg: python-dict2xml 1.7.0-1 Added: python-dict2xml/ python-dict2xml/repos/ python-dict2xml/trunk/ python-dict2xml/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: python-dict2xml/trunk/PKGBUILD =================================================================== --- python-dict2xml/trunk/PKGBUILD (rev 0) +++ python-dict2xml/trunk/PKGBUILD 2021-05-31 17:26:14 UTC (rev 952844) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <[email protected]> + +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/ +}
