# Maintainer: Mark pkgname=daisy _cargoname=daisycalc pkgver=0.2.14 pkgrel=1 pkgdesc="TUI scientific calculator with support for units." url="https://git.betalupi.com/Mark/daisy" license=('GPL') makedepends=('rust' 'cargo') arch=('i686' 'x86_64' 'armv6h' 'armv7h') source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$_cargoname/$_cargoname-$pkgver.crate") prepare() { export RUSTUP_TOOLCHAIN=stable cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features } check() { export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" }