aports/community/cargo2junit/APKBUILD
2025-04-18 16:58:51 +00:00

38 lines
874 B
Text

# Maintainer: kpcyrd <git@rxv.cc>
pkgname=cargo2junit
pkgver=0.1.14
pkgrel=0
pkgdesc="Converts cargo's json output to JUnit XML"
url="https://github.com/johnterickson/cargo2junit"
arch="all"
license="MIT"
makedepends="
cargo
cargo-auditable
"
source="https://github.com/johnterickson/cargo2junit/archive/refs/tags/v$pkgver/cargo2junit-$pkgver.tar.gz"
options="net"
prepare() {
default_prepare
cargo add time@0.3.35
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --frozen
}
check() {
cargo test --frozen
}
package() {
install -Dm755 target/release/cargo2junit \
-t "$pkgdir"/usr/bin
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
sha512sums="
9569ab576c04796d660b1ae7c36b455699033db6baa3012c7db2eb86c189fbd0433cf7f1174371e42794909b06c6db9be15ddb77ee77420874a10d3bb1430131 cargo2junit-0.1.14.tar.gz
"