mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 02:27:10 +02:00
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
# 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
|
||
"
|