blob: d0b4d6bd56b84873622bc94dd5a99d6f7ce301f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Mark <no@email.com>
_cargoname=daisycalc
_exename=daisy
pkgname=daisy
pkgver=1.1.7
pkgrel=1
pkgdesc="A high-precision terminal scientific calculator."
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")
sha1sums=('513133503270e3ba60305bae08f14b2b6721e387')
# Run before commiting:
# Generate checksums: `makepkg -g`
# Generate .SRCINFO: `makepkg --printsrcinfo > .SRCINFO`
prepare() {
cd "$_cargoname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$_cargoname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "$_cargoname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo test --release --frozen --all-features
}
package() {
cd "$_cargoname-$pkgver"
#mv "target/release/$_cargoname" "target/release/$pkgname"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_exename"
}
|