mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Maintainer: qaqland <qaq@qaq.land>
|
|
pkgname=bash-pinyin-completion-rs
|
|
pkgver=0.2.3
|
|
pkgrel=0
|
|
pkgdesc="Simple completion script for pinyin, written in rust"
|
|
url="https://github.com/wxiwnd/bash-pinyin-completion-rs"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
depends="bash-completion"
|
|
makedepends="cargo cargo-auditable"
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/wxiwnd/bash-pinyin-completion-rs/archive/v$pkgver/bash-pinyin-completion-rs-$pkgver.tar.gz"
|
|
options="net !check" # cargo fetch, upstream has no tests
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/bash-pinyin-completion-rs -t "$pkgdir"/usr/bin/
|
|
install -Dm644 scripts/bash_pinyin_completion -t "$pkgdir"/etc/bash_completion.d/
|
|
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
5a31d345b6937aebfd1486cc23fbc8a4751a33789171bae0454c19a948003d0f59f6b3b78b6fc75aca695f1e858f4aabff21826b008b3a4b7ea0709b447dabc3 bash-pinyin-completion-rs-0.2.3.tar.gz
|
|
"
|