archrelease: copy trunk to community-any
[ArchLinux/community.git] / yq / trunk / PKGBUILD
blob6825814cbefc616945507d19815258b051bd74b0
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Daurnimator <daurnimator@archlinux.org>
3 # Maintainer: Caleb Maclennan <caleb@alerque.com>
4 # Contributor: Daniel M. Capella <polyzen@archlinux.org>
6 pkgname=yq
7 pkgver=3.2.2
8 pkgrel=2
9 pkgdesc="Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents"
10 arch=('any')
11 url="https://github.com/kislyuk/yq"
12 license=('Apache')
13 depends=('jq'
14          'python-argcomplete'
15          'python-tomlkit'
16          'python-xmltodict'
17          'python-yaml')
18 makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
19 conflicts=('go-yq')
20 source=("https://files.pythonhosted.org/packages/source/y/$pkgname/$pkgname-$pkgver.tar.gz")
21 sha256sums=('8dbb7a0c937ddbfc3dd175e6478f40960c140d3e8b1f1a0315de76384d66650a')
22 b2sums=('4386a7972b411159ed909ccdc7c32a878d064ac5101cbddb16b0f1efe37c3791aeefda3b7c18c94e7d79fb01a4a4b43f7fbcc7c55bd275c52e08cc069523c8d3')
24 build() {
25   cd $pkgname-$pkgver
26   python -m build -wn
29 check() {
30   cd $pkgname-$pkgver
31   python test/test.py
34 package() {
35   cd $pkgname-$pkgver
36   python -m installer -d "$pkgdir" dist/*.whl