aports/testing/toml2json/APKBUILD

41 lines
1 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com>
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
pkgname=toml2json
pkgver=1.3.1
pkgrel=0
pkgdesc="A very small CLI for converting TOML to JSON"
url="https://github.com/woodruffw/toml2json"
# loongarch64: blocked by libc crate
arch="all !loongarch64"
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
"