From b4b799237eeb43c8696ff8a3caaf7d0a83462364 Mon Sep 17 00:00:00 2001 From: Eugen Zagorodniy Date: Sun, 8 Jan 2023 21:58:12 +0200 Subject: [PATCH] New package: librav1e-0.6.2 --- common/shlibs | 1 + srcpkgs/librav1e-devel | 1 + srcpkgs/librav1e/template | 47 +++++++++++++++++++++++++++++++++++++++ srcpkgs/rav1e | 1 + 4 files changed, 50 insertions(+) create mode 120000 srcpkgs/librav1e-devel create mode 100644 srcpkgs/librav1e/template create mode 120000 srcpkgs/rav1e diff --git a/common/shlibs b/common/shlibs index 349c183cdb38..5408e00a5c2f 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4220,3 +4220,4 @@ libdspy-1.so.1 d-spy-1.4.0_1 libpanel-1.so.1 libpanel-1.0.1_1 libqrtr.so.1 qrtr-ns-1.0_1 libbpf.so.1 libbpf-1.0.0_1 +librav1e.so.0 librav1e-0.6.2_1 diff --git a/srcpkgs/librav1e-devel b/srcpkgs/librav1e-devel new file mode 120000 index 000000000000..45cbadcee218 --- /dev/null +++ b/srcpkgs/librav1e-devel @@ -0,0 +1 @@ +librav1e \ No newline at end of file diff --git a/srcpkgs/librav1e/template b/srcpkgs/librav1e/template new file mode 100644 index 000000000000..4e313ee3c2ee --- /dev/null +++ b/srcpkgs/librav1e/template @@ -0,0 +1,47 @@ +# Template file for 'librav1e' +pkgname=librav1e +version=0.6.2 +revision=1 +hostmakedepends="cargo nasm pkg-config" +makedepends="openssl-devel rust-std" +short_desc="AV1 video encoder suitable for cases where libaom is too slow" +maintainer="Eugen Zagorodniy " +license=BSD-2-Clause +homepage="https://github.com/xiph/rav1e" +distfiles="https://github.com/xiph/rav1e/archive/refs/tags/v${version}.tar.gz" +checksum=8fe8d80bc80a05ee33113c0ee19779d9c57189e5434c8e1da8f67832461aa089 + +do_build() { + cargo install cargo-c --version=0.9.14 + cargo cbuild --release \ + --target=${XBPS_RUST_TARGET} \ + --destdir=${DESTDIR} \ + --prefix=usr + cargo build --release +} + +do_install() { + vlicense LICENSE + cargo cinstall --release \ + --target=${XBPS_RUST_TARGET} \ + --destdir=${DESTDIR} \ + --prefix=usr +} + +librav1e-devel_package() { + depends="librav1e>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +} + +rav1e_package() { + short_desc+=" - standalone binary" + pkg_install() { + vbin target/release/rav1e + } +} diff --git a/srcpkgs/rav1e b/srcpkgs/rav1e new file mode 120000 index 000000000000..45cbadcee218 --- /dev/null +++ b/srcpkgs/rav1e @@ -0,0 +1 @@ +librav1e \ No newline at end of file