aports/community/convfmt/APKBUILD
znley 50ad508139 community/*: disable on loongarch64
I disable these packages on loongarch64 because they are
blocked by libc create.

Although I can enable them by patching after update
denendencies, but considering that these patches may
become invalid after the pkgver upgrade, temporarily
disabing them should be a better choice.

I will submit loongarch64 support upstream first, when
upstream dependencies are updated to support
loongarch64, I will enable them again.
2024-06-04 07:35:35 +00:00

35 lines
854 B
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=convfmt
pkgver=0.1.6
pkgrel=0
pkgdesc="CLI tool which can convert between JSON, YAML, TOML etc."
url="https://github.com/oriontvv/convfmt"
# loongarch64: blocked by libc crate
arch="all !loongarch64"
license="Apache-2.0"
makedepends="cargo cargo-auditable"
source="https://github.com/oriontvv/convfmt/archive/$pkgver/convfmt-$pkgver.tar.gz"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/
}
sha512sums="
66edf458f2114b4cee3cece116a236ff94e5c52345073673f042e33c5b710b583e0b4d0b0a2399d2c4031e0b9ad825eecba6d15c1d908a231d42f44ac86cd47e convfmt-0.1.6.tar.gz
"