mirror of
https://github.com/rm-dr/daisy
synced 2025-02-20 05:59:21 -08:00
Added pkgbuild
This commit is contained in:
parent
dc42138a38
commit
5d80579457
31
PKGBUILD
Normal file
31
PKGBUILD
Normal file
@ -0,0 +1,31 @@
|
||||
pkgname=daisycalc
|
||||
pkgver=0.2.5
|
||||
pkgrel=1
|
||||
makedepends=('rust' 'cargo')
|
||||
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
|
||||
|
||||
#source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
|
||||
|
||||
build() {
|
||||
return 0
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user