mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-15 07:32:42 +02:00
- Ref https://github.com/xiph/rav1e/releases/tag/v0.8.0 - Remove upgrade-rust-libc-to-support-loongarch64.patch
66 lines
1.6 KiB
Text
66 lines
1.6 KiB
Text
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=rav1e
|
|
pkgver=0.8.0
|
|
pkgrel=0
|
|
pkgdesc="The fastest and safest AV1 encoder"
|
|
url="https://github.com/xiph/rav1e"
|
|
arch="all"
|
|
license="BSD-2-Clause custom"
|
|
makedepends="cargo cargo-c nasm cargo-auditable"
|
|
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/xiph/rav1e/archive/v$pkgver.tar.gz"
|
|
options="net" # cargo crates
|
|
|
|
# armhf: tests take >6h
|
|
case "$CARCH" in
|
|
arm*|riscv64)
|
|
options="$options !check"
|
|
;;
|
|
esac
|
|
|
|
export CARGO_PROFILE_RELEASE_INCREMENTAL=false
|
|
export CARGO_PROFILE_RELEASE_DEBUG=false
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --locked
|
|
}
|
|
|
|
build() {
|
|
export CARGO_PROFILE_RELEASE_OPT_LEVEL=3
|
|
|
|
cargo auditable build --release --locked
|
|
cargo auditable cbuild \
|
|
--release \
|
|
--locked \
|
|
--prefix /usr \
|
|
--library-type cdylib \
|
|
--library-type staticlib
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen --workspace
|
|
}
|
|
|
|
package() {
|
|
cargo auditable cinstall --release \
|
|
--frozen \
|
|
--prefix /usr \
|
|
--destdir "$pkgdir" \
|
|
--library-type cdylib \
|
|
--library-type staticlib
|
|
|
|
install -Dm755 target/release/rav1e -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 README.md PATENTS -t "$pkgdir"/usr/share/doc/rav1e
|
|
|
|
# fixes static linking flags
|
|
sed -i 's|Libs.private:.*|Libs.private: -lssp_nonshared -lgcc_eh -lc|' \
|
|
"$pkgdir"/usr/lib/pkgconfig/rav1e.pc
|
|
}
|
|
|
|
sha512sums="
|
|
d0919852cb31fab1445b3ee22a0e4d852ab75917bee0c3cbf8a6ce2a3a5e4a18866a5f5c16ea788568fbc339f5c8db27522239fae23fe1e58ed50aeeac51848f rav1e-0.8.0.tar.gz
|
|
"
|