blob: fa6b9055cc5179e045c523ce0b86c269fcfbee36 (
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
|
# Maintainer: kojq <kojq@mailfence.com>
pkgname=gensoquote-git
_pkgname=gensoquote
pkgver=0.4.1.r4.gff1dc25
pkgrel=1
pkgdesc='Like fortune, but in Gensokyo and memory safeā¢'
url=https://github.com/dmyTRUEk/gensoquote
source=(git+https://github.com/dmyTRUEk/gensoquote)
license=(MIT)
arch=(x86_64)
makedepends=(cargo git)
conflicts=(gensoquote gensoquote-bin)
provides=(gensoquote)
sha256sums=(SKIP)
prepare() {
cd $_pkgname
cargo fetch --locked --target $CARCH-unknown-linux-gnu
}
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/.*v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $_pkgname
cargo build --frozen --release
}
check() {
cd $_pkgname
cargo test --frozen --release
}
package() {
cd $_pkgname
install -Dm755 target/release/gensoquote -t $pkgdir/usr/bin
install -Dm644 LICENSE.md $pkgdir/usr/share/licenses/$_pkgname/LICENSE
}
|