blob: 08271c6ea5e364537221faf42ce95313ea4b2f0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Maintainer: Bart Libert <bart plus aur at libert dot email>
pkgname=python-json2xml
_name=${pkgname#python-}
pkgver=4.1.0
pkgrel=1
pkgdesc="Simple Python Library to convert JSON to XML"
arch=('any')
url="https://json2xml.readthedocs.io/"
license=('Apache')
makedepends=('python-setuptools') # unless it only requires distutils
depends=('python-defusedxml' 'python-urllib3' 'python')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha512sums=('3894b3356a15546bee7afcf30c0351bd763508fac25b8bc67760454ed94307569ddd31e83a19e3d1696be2523f73e3a0db819e8310c8b224fcf841e3673e1aff')
build() {
cd "$_name-$pkgver"
python setup.py build
}
package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
}
|