mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 06:06:58 +02:00
Because rust libc crate build failed, these aports cannot build successfully on loongarch64.
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: Coco Liliace <coco@liliace.dev>
|
|
# Maintainer: Coco Liliace <coco@liliace.dev>
|
|
#
|
|
# optional dependencies:
|
|
# - yt-dlp and ffmpeg: for downloading from youtube
|
|
pkgname=termusic-mpv
|
|
pkgver=0.7.11
|
|
pkgrel=0
|
|
pkgdesc="Music Player TUI written in Rust"
|
|
url="https://github.com/tramhao/termusic"
|
|
# loongarch64: blocked by libc crate
|
|
arch="all !s390x !riscv64 !loongarch64"
|
|
license="MIT AND GPL-3.0-or-later"
|
|
depends="protoc mpv-dev"
|
|
makedepends="cargo cargo-auditable rustfmt rust-clippy dbus-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tramhao/termusic/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/termusic-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --locked --target="$CTARGET"
|
|
}
|
|
|
|
check() {
|
|
make fmt
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --no-default-features --features mpv --release --frozen --all
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 -t "$pkgdir"/usr/bin ./target/release/termusic ./target/release/termusic-server
|
|
}
|
|
sha512sums="
|
|
67f0b06ff37dbc3d16c77c6bdd0163dc547fbea1a25b3a7574b4540a4ad3a2059dc547d49411803fd9aa162d4f432ff5b99bef1e0f5c362342943fa76985f443 termusic-mpv-0.7.11.tar.gz
|
|
"
|