diff options
author | Oleg Titov <oleg.titov@gmail.com> | 2019-12-24 11:34:50 -0600 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-25 00:59:01 +0100 |
commit | 3e3857da69b59798d1ce8073014c51267efe991a (patch) | |
tree | 3d1057949776912d9e9baf5651b04cff7e31d554 /testing/rav1e | |
parent | e8b3cd0d149c057485a6cd03b27d39b081401136 (diff) | |
download | aports-3e3857da69b59798d1ce8073014c51267efe991a.tar.bz2 aports-3e3857da69b59798d1ce8073014c51267efe991a.tar.xz |
testing/rav1e: new aport
https://github.com/xiph/rav1e
The fastest and safest AV1 encoder
Diffstat (limited to 'testing/rav1e')
-rw-r--r-- | testing/rav1e/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/rav1e/APKBUILD b/testing/rav1e/APKBUILD new file mode 100644 index 0000000000..3cab45213c --- /dev/null +++ b/testing/rav1e/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Oleg Titov <oleg.titov@gmail.com> +# Maintainer: Oleg Titov <oleg.titov@gmail.com> +pkgname=rav1e +pkgver=0.2.0 +pkgrel=0 +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" +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 +} + +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" +} + +sha512sums="f9f218007742de1f97a75866cc562d055f6bcf704c4ad5c216b680f8d65b1e958fc8c6db2bd3cb78a6d97c880c08b603d4235b6297ea3d592ff196866d9617c8 rav1e-0.2.0.tar.gz" |