2026-01-30 16:54:54 +00:00

41 lines
1.0 KiB
Plaintext

maintainer="qaqland <qaq@qaq.land>"
pkgname=code-minimap
pkgver=0.6.8
pkgrel=0
pkgdesc="A high performance code minimap render"
url="https://github.com/wfxr/code-minimap"
arch="all"
license="MIT AND Apache-2.0"
makedepends="cargo cargo-auditable"
subpackages="$pkgname-doc"
source="https://github.com/wfxr/code-minimap/archive/v$pkgver/code-minimap-$pkgver.tar.gz"
options="net" # cargo fetch
# upstream does have completion for shells, but it is often invoked by plugins
# rather than people. So we don't build completion-subpackages here.
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -Dm755 target/release/code-minimap -t "$pkgdir"/usr/bin/
install -Dm644 README.md LICENSE-MIT LICENSE-APACHE \
-t "$pkgdir"/usr/share/doc/$pkgname
}
sha512sums="
feeeb1fd420eb4ae3b8802e9c82aa5cca41253a1a36627f9bfa305d9c061c66d938a0d9f6e9d2965a76b5efa9b33959d3c4522f7b45a78232c667da3fdd8b517 code-minimap-0.6.8.tar.gz
"