# Contributor: Oleg Titov # Maintainer: Oleg Titov pkgname=rav1e pkgver=0.3.0 pkgrel=1 pkgdesc="The fastest and safest AV1 encoder" url="https://github.com/xiph/rav1e" arch="all !s390x" # no cargo for s390x license="BSD-2-Clause custom" options="!check" # No test suite from upstream makedepends="cargo nasm" subpackages="$pkgname-doc $pkgname-libs $pkgname-static" source="$pkgname-$pkgver.tar.gz::https://github.com/xiph/rav1e/archive/v$pkgver.tar.gz" prepare() { RUSTFLAGS="-C opt-level=0" \ cargo install --force --root "$srcdir" cargo-c } check() { cargo test --release } package() { cargo install --root "$pkgdir/usr" --path . "$srcdir/bin/cargo-cinstall" install \ --release --destdir "$pkgdir" --prefix "/usr" install -Dm 644 -t "$pkgdir/usr/share/doc/rav1e" README.md install -Dm 644 -t "$pkgdir/usr/share/doc/rav1e" PATENTS rm "$pkgdir"/usr/.crates.toml rm "$pkgdir"/usr/.crates2.json } sha512sums="64cfb5e091de25faf4281f060782a3c3d8cc7fb8df730286cf796fc3ee6e268b7f8db96d630a753a6ef7434528179c4b15d95534b140249ed39f0b9947dcb8df rav1e-0.3.0.tar.gz"