blob: e4479b0eae93cf782f6cbad5c643f8aa1ab6124f (
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
|
# Maintainer: Matthew Sexton <matthew@asylumtech.com>
# Contributor: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=mazter
pkgver=1.0.0
pkgrel=2
pkgdesc="Mazes in your terminal"
arch=('x86_64')
url="https://dystroy.org/mazter/"
license=(MIT)
depends=(gcc-libs)
makedepends=(cargo)
source=(${pkgname}-${pkgver}.tar.gz::https://static.crates.io/crates/${pkgname}/${pkgname}-${pkgver}.crate)
sha512sums=('024b496104ee393ea175523bef74578d627530a98a603eab013b1ca1567f3317c567da426e561656c8f7ee243a7e4298fb0766914be73146752ed2405935086c')
prepare() {
cd ${pkgname}-${pkgver}
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd ${pkgname}-${pkgver}
cargo build --frozen --release --all-features
}
check() {
export RUSTUP_TOOLCHAIN=stable
cd ${pkgname}-${pkgver}
cargo test --frozen --all-features
}
package() {
cd ${pkgname}-${pkgver}
install -D "target/release/$pkgname" -t "$pkgdir/usr/bin/"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|