# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=tuc pkgver=1.0.0 pkgrel=1 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" 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=" ef9cbeefaa11a80467f684ff07aae3166eb6e3f834019b74982dc31e4d996b388087f065db8d98c2c3f5adbaf7f6d74bea53986ba41ab3f6c69a7171acb7685b tuc-1.0.0.tar.gz "