aports/testing/cargo-run-bin/APKBUILD

42 lines
1.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=cargo-run-bin
pkgver=1.7.2
pkgrel=0
pkgdesc="Build, cache, and run CLI tools scoped in Cargo.toml"
url="https://github.com/dustinblackman/cargo-run-bin"
# 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/dustinblackman/cargo-run-bin/archive/v$pkgver.tar.gz"
options="net"
options="$options !check" # https://github.com/dustinblackman/cargo-run-bin/issues/18
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --frozen
}
check() {
cargo test --frozen
}
package() {
install -Dm 755 "target/release/cargo-bin" -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="
5a81437f15f99b145ed6be4c3943e50e8f8f8b40bb36dc8a37ea29d6e43bfb0cb928d77ba3db19d0d919b4a8f4cbd3296b996db0c2ce0c42397393269a017f5d cargo-run-bin-1.7.2.tar.gz
"