daisy/PKGBUILD

32 lines
776 B
Bash
Raw Normal View History

2023-08-01 12:32:58 -07:00
# Maintainer: Mark <no@email.com>
pkgname=daisy
_cargoname=daisycalc
pkgver=0.2.14
2023-07-29 12:53:00 -07:00
pkgrel=1
2023-08-01 12:32:58 -07:00
pkgdesc="TUI scientific calculator with support for units."
url="https://git.betalupi.com/Mark/daisy"
license=('GPL')
2023-07-29 12:53:00 -07:00
makedepends=('rust' 'cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
2023-08-01 12:32:58 -07:00
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$_cargoname/$_cargoname-$pkgver.crate")
2023-07-29 12:53:00 -07:00
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"
2023-08-01 12:32:58 -07:00
}