mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
maintainer="Matthias Ahouansou <matthias@ahouansou.cz>"
|
|
pkgname=ff2mpv-rust
|
|
pkgver=1.1.6
|
|
pkgrel=0
|
|
pkgdesc="Native messaging host for ff2mpv written in Rust"
|
|
url="https://code.thishorsie.rocks/ryze/ff2mpv-rust"
|
|
arch="all"
|
|
license="GPL-3.0-only"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://code.thishorsie.rocks/ryze/ff2mpv-rust/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/$pkgname"
|
|
options="net !check" # cargo crates, no tests
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --target="$CTARGET" --release --frozen --all-features
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/"$CTARGET"/release/ff2mpv-rust "$pkgdir"/usr/bin/ff2mpv-rust
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
2738226b0ba8c53de35b3960172f3ad5cc4a4c8efe462ea09e480338b1c9bba8e6a5065a95d99bbf769ce06e25e97fbeb5fbb4ee62ded30ec0de5ffb5cbc58eb ff2mpv-rust-1.1.6.tar.gz
|
|
"
|