aports/community/tuc/APKBUILD
Jingyun Hua 72590184fe community/tuc: fix build on loongarch64
Update libc to v0.2.155
2024-07-03 20:55:08 +00:00

38 lines
984 B
Plaintext

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=tuc
pkgver=1.2.0
pkgrel=0
pkgdesc="When cut doesn't cut it"
url="https://github.com/riquito/tuc"
license="GPL-3.0-or-later"
# riscv64: build failure in libc crate
arch="all !riscv64"
makedepends="cargo cargo-auditable"
source="https://github.com/riquito/tuc/archive/v$pkgver/tuc-$pkgver.tar.gz
cargo-update.patch"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
}
sha512sums="
a11133ce3a7ec0f79963f3b69288c870a855e51cebefdee01358958a202ba1663fb6a2c35a163039539cb3968ed010758e476e80b72cccf03f5c4491edbdf1ba tuc-1.2.0.tar.gz
6d40791010d21f0383c43522c59b569d15b0ac327322d8da65f767a2090c056d709174d5967dd1ee05763b6ba8f9ac4592268c35df55a089033cd6c382ccb949 cargo-update.patch
"