1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/community/pipr/APKBUILD
ptrcnull fbcf4c4f11 */*: utilise sparse crates.io fetches
this is a million times faster

new only in rust 1.68, and fails on older versions,
but we have only latest in aports and don't support anything else, so
it's okay.
2023-03-10 00:35:53 +01:00

43 lines
1.1 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pipr
pkgver=0.0.16
pkgrel=0
pkgdesc="A tool to interactively write shell pipelines"
url="https://github.com/elkowar/pipr"
arch="aarch64 armhf armv7 ppc64le x86 x86_64" # limited by rust/cargo
license="MIT"
depends="bubblewrap"
makedepends="
cargo
oniguruma-dev
"
source="https://github.com/elkowar/pipr/archive/v$pkgver/pipr-$pkgver.tar.gz
handle-unrecognized-option.patch
"
export RUSTONIG_DYNAMIC_LIBONIG=1 # use system libonig
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -D -m755 target/release/pipr -t "$pkgdir"/usr/bin/
}
sha512sums="
51adcc3c37e5a86aa75d6368aeb8e675f4971cdebea41ef88ed5876ccd3165e14e5aa1ab5b4ceae09465ed2822b273ad6b9fc9716a8962b8d8f7b2819dacd9c1 pipr-0.0.16.tar.gz
9024cdfb41f161550dda9cb5460d93d606844ada008f11d94e80309ef5f9129870c21b0f24202435e7574a16ca24420ae01c9dacf7d63ab346de288db71451d0 handle-unrecognized-option.patch
"