blob: dcf4fddee7cf2f1421bdf7365b56c8fb74ca9e5f (
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
|
# Maintainer: Benjamin Voisin <benjamin.voisin@ens-rennes.fr>
pkgname="olagem"
epoch=1
pkgver=0.2.1
pkgrel=2
pkgdesc="A terminal based typing speed test"
url="https://codeberg.org/BenjaminV/$pkgname"
arch=(x86_64)
license=("CC0-1.0")
makedepends=(
cargo
)
source=(
"$pkgname-$pkgver.tar.gz::https://codeberg.org/BenjaminV/$pkgname/archive/v$pkgver.tar.gz"
"$pkgname-$pkgver.tar.gz.asc::https://codeberg.org/BenjaminV/$pkgname/releases/download/v$pkgver/$pkgname-v$pkgver.tar.gz.asc"
)
sha256sums=('e3cf024a816c6ea49121691f3d531c6709ce52914754f0ba5816ff597923fccf'
'SKIP')
validpgpkeys=('F6BB766662E7D433F7EE159EC5C8EDD125FBFD78') # Benjamin Voisin <benjamin.voisin@ens-rennes.fr>
prepare() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "$srcdir/$pkgname"
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/share/olagem
cp -r target/release/olagem $pkgdir/usr/bin/
cp -r assets/* $pkgdir/usr/share/olagem/
}
|