mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-12 17:39:42 +02:00
46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
maintainer="Matthias Ahouansou <matthias@ahouansou.cz>"
|
|
pkgname=rmpc
|
|
pkgver=0.8.0
|
|
pkgrel=0
|
|
pkgdesc="Configurable, terminal based Media Player Client with album art support via various terminal image protocols"
|
|
url="https://mierak.github.io/rmpc/"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="cargo-auditable"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mierak/rmpc/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net" # cargo packages
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/rmpc -t "$pkgdir"/usr/bin
|
|
|
|
install -Dm644 target/completions/rmpc.bash "$pkgdir"/usr/share/bash-completion/completions/rmpc
|
|
install -Dm644 target/completions/rmpc.fish "$pkgdir"/usr/share/fish/vendor_completions.d/rmpc.fish
|
|
install -Dm644 target/completions/_rmpc "$pkgdir"/usr/share/zsh/site-functions/_rmpc
|
|
|
|
install -Dm644 target/man/rmpc.1 -t "$pkgdir"/usr/share/man/man1
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
20c5ad9cbc3f3633f313bca71e7c85a6cb97c9d0f030f72d10745d69edb5f783e6b74521b6645d6cf753666ec1d964c31ef11ad765cd491f5a52dae871a44829 rmpc-0.8.0.tar.gz
|
|
"
|