# Maintainer: Simon Rupf pkgname=convert2json pkgver=0.4.6 pkgrel=0 pkgdesc="Utilities to convert CSV, TOML, XML & YAML to JSON, including jq wrappers." url="https://github.com/simonrupf/convert2json" arch="all" license="MIT" depends="jq" makedepends=" cargo cargo-auditable clang15-dev " source="https://github.com/simonrupf/convert2json/archive/$pkgver/convert2json-$pkgver.tar.gz" options="net" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen } check() { cargo test --frozen } package() { install -Dm755 target/release/cq target/release/tq target/release/xq \ target/release/yq target/release/csv2json target/release/toml2json \ target/release/xml2json target/release/yaml2json \ -t "$pkgdir"/usr/bin } sha512sums=" cb9951772aae3284e7e2cce412439263e65672b8438eebe18578f4f4c4788f5c6427f273c00b8e97ea14b7ad4662f913ae82e9df1fe01292a605190d5aee8364 convert2json-0.4.6.tar.gz "