# Contributor: Orhun Parmaksız # Maintainer: Orhun Parmaksız pkgname=toml2json pkgver=1.3.1 pkgrel=0 pkgdesc="A very small CLI for converting TOML to JSON" url="https://github.com/woodruffw/toml2json" arch="all" license="MIT" makedepends=" cargo cargo-auditable " subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/woodruffw/toml2json/archive/v$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 -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin" install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" } sha512sums=" ae89a6cc3e3409c24f9c093036ab53d21c177775aec27c200b45971c94f1948c4140e64d17e634c097368ff2afd7ed2bbd29f51c7ef225b15a1dc88984750c6a toml2json-1.3.1.tar.gz "