blob: 382f46edd0bf30c24465fe9cbf6cb7b6edc72258 (
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
|
# Maintainer: Tal <talwat321@gmail.com>
pkgname=pokeget
pkgver=1.6.7
pkgrel=1
pkgdesc="Display pokemon sprites in your terminal."
arch=('any')
url="https://github.com/talwat/pokeget-rs"
license=('MIT')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
sha512sums=('15107ef41fffd61bc41643f030b3bd4e563bf4fea9a2422239796e1c2369c9b4259d8132a74f4048ffe83817745918ab00493c4dfac94fa2b87598749e334b5f')
prepare() {
cd "pokeget-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "pokeget-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "pokeget-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}
|