projects/aports·blob master · refs

40 lines · 1.0 KiB

1maintainer="qaqland <[email protected]>"
2pkgname=code-minimap
3pkgver=0.6.8
4pkgrel=0
5pkgdesc="A high performance code minimap render"
6url="https://github.com/wfxr/code-minimap"
7arch="all"
8license="MIT AND Apache-2.0"
9makedepends="cargo cargo-auditable"
10subpackages="$pkgname-doc"
11source="https://github.com/wfxr/code-minimap/archive/v$pkgver/code-minimap-$pkgver.tar.gz"
12options="net" # cargo fetch
13
14# upstream does have completion for shells, but it is often invoked by plugins
15# rather than people. So we don't build completion-subpackages here.
16
17prepare() {
18 default_prepare
19
20 cargo fetch --target="$CTARGET" --locked
21}
22
23build() {
24 cargo auditable build --frozen --release
25}
26
27check() {
28 cargo test --frozen
29}
30
31package() {
32 install -Dm755 target/release/code-minimap -t "$pkgdir"/usr/bin/
33
34 install -Dm644 README.md LICENSE-MIT LICENSE-APACHE \
35 -t "$pkgdir"/usr/share/doc/$pkgname
36}
37
38sha512sums="
39feeeb1fd420eb4ae3b8802e9c82aa5cca41253a1a36627f9bfa305d9c061c66d938a0d9f6e9d2965a76b5efa9b33959d3c4522f7b45a78232c667da3fdd8b517 code-minimap-0.6.8.tar.gz
40"