mirror of
				https://github.com/rm-dr/daisy
				synced 2025-10-31 06:24:36 -07:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			776 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			776 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| # Maintainer: Mark <no@email.com>
 | |
| pkgname=daisy
 | |
| _cargoname=daisycalc
 | |
| pkgver=0.2.16
 | |
| 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"
 | |
| } |