Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: librav1e-0.6.2
@ 2023-01-08 21:20 ezag
  2023-01-08 21:37 ` [PR PATCH] [Updated] " ezag
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: ezag @ 2023-01-08 21:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]

There is a new pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 2169 bytes --]

From d9f89aca2575e24d5eff85707af46d21bbb71b2a Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
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 | 38 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 120000 srcpkgs/librav1e-devel
 create mode 100644 srcpkgs/librav1e/template

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..8e2d925a88d9
--- /dev/null
+++ b/srcpkgs/librav1e/template
@@ -0,0 +1,38 @@
+# Template file for 'librav1e'
+pkgname=librav1e
+version=0.6.2
+revision=1
+hostmakedepends="cargo nasm openssl-devel pkg-config"
+short_desc="AV1 video encoder suitable for cases where libaom is too slow"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+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
+}
+
+do_install() {
+	vlicense LISENSE
+	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
+	}
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
@ 2023-01-08 21:37 ` ezag
  2023-01-08 23:08 ` [PR REVIEW] " classabbyamp
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-08 21:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 2169 bytes --]

From 4fc445f6323954b9ba40d681b32088498c65aa38 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
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 | 38 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 120000 srcpkgs/librav1e-devel
 create mode 100644 srcpkgs/librav1e/template

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..6aac3fd7ccef
--- /dev/null
+++ b/srcpkgs/librav1e/template
@@ -0,0 +1,38 @@
+# Template file for 'librav1e'
+pkgname=librav1e
+version=0.6.2
+revision=1
+hostmakedepends="cargo nasm openssl-devel pkg-config"
+short_desc="AV1 video encoder suitable for cases where libaom is too slow"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+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
+}
+
+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
+	}
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
  2023-01-08 21:37 ` [PR PATCH] [Updated] " ezag
@ 2023-01-08 23:08 ` classabbyamp
  2023-01-09  3:49 ` [PR PATCH] [Updated] " ezag
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: classabbyamp @ 2023-01-08 23:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/41525#discussion_r1064217578

Comment:
openssl-devel should be a makedepend

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
  2023-01-08 21:37 ` [PR PATCH] [Updated] " ezag
  2023-01-08 23:08 ` [PR REVIEW] " classabbyamp
@ 2023-01-09  3:49 ` ezag
  2023-01-09  4:20 ` ezag
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-09  3:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 2581 bytes --]

From b4b799237eeb43c8696ff8a3caaf7d0a83462364 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
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 <zag@disroot.org>"
+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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (2 preceding siblings ...)
  2023-01-09  3:49 ` [PR PATCH] [Updated] " ezag
@ 2023-01-09  4:20 ` ezag
  2023-01-09  4:50 ` ezag
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-09  4:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 2593 bytes --]

From fdf78de2ff1d96eb2bc2761c0bbfd48fcf36f162 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
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 | 48 +++++++++++++++++++++++++++++++++++++++
 srcpkgs/rav1e             |  1 +
 4 files changed, 51 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..652c75b09cbc
--- /dev/null
+++ b/srcpkgs/librav1e/template
@@ -0,0 +1,48 @@
+# Template file for 'librav1e'
+pkgname=librav1e
+version=0.6.2
+revision=1
+build_helper="rust"
+hostmakedepends="cargo nasm pkg-config"
+makedepends="openssl-devel"
+short_desc="AV1 video encoder suitable for cases where libaom is too slow"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (3 preceding siblings ...)
  2023-01-09  4:20 ` ezag
@ 2023-01-09  4:50 ` ezag
  2023-01-09  7:13 ` ezag
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-09  4:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 2663 bytes --]

From 1874e71710abadca28ed11dead5e93b918a292f6 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
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 | 49 +++++++++++++++++++++++++++++++++++++++
 srcpkgs/rav1e             |  1 +
 4 files changed, 52 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..3308c61d1767
--- /dev/null
+++ b/srcpkgs/librav1e/template
@@ -0,0 +1,49 @@
+# Template file for 'librav1e'
+pkgname=librav1e
+version=0.6.2
+revision=1
+hostmakedepends="cargo nasm pkg-config"
+makedepends="openssl-devel"
+short_desc="AV1 video encoder suitable for cases where libaom is too slow"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+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
+nocross="Setting up cargo-c is failing for cross builds"
+
+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() {
+		ls -R /destdir/librav1e-0.6.2
+		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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (4 preceding siblings ...)
  2023-01-09  4:50 ` ezag
@ 2023-01-09  7:13 ` ezag
  2023-01-09  7:20 ` ezag
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-09  7:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 3747 bytes --]

From 10a8704f11f4e35c0959a1a5bdb8751e72a4a0e4 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Sun, 8 Jan 2023 21:58:12 +0200
Subject: [PATCH 1/2] New package: librav1e-0.6.2

---
 common/shlibs             |  1 +
 srcpkgs/librav1e-devel    |  1 +
 srcpkgs/librav1e/template | 48 +++++++++++++++++++++++++++++++++++++++
 srcpkgs/rav1e             |  1 +
 4 files changed, 51 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..62a8e9bca18e
--- /dev/null
+++ b/srcpkgs/librav1e/template
@@ -0,0 +1,48 @@
+# Template file for 'librav1e'
+pkgname=librav1e
+version=0.6.2
+revision=1
+build_helper="rust"
+hostmakedepends="cargo cargo-c nasm pkg-config"
+makedepends="rust"
+short_desc="AV1 video encoder suitable for cases where libaom is too slow"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+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 cbuild --release --target ${RUST_TARGET} --destdir ${DESTDIR} --prefix usr
+	cargo build --release --target ${RUST_TARGET}
+}
+
+do_check() {
+  cargo ctest --target ${RUST_TARGET}
+}
+
+do_install() {
+	vlicense LICENSE
+	cargo cinstall --release --target=${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/${RUST_TARGET}/release/rav1e
+	}
+	pkg_check() {
+	  cargo test --release --target ${RUST_TARGET}
+	}
+}
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

From 043405bd48a4e03f2aef86a64c0006d1778ab78d Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Mon, 9 Jan 2023 07:54:27 +0200
Subject: [PATCH 2/2] New package: cargo-c-0.9.14

---
 srcpkgs/cargo-c/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/cargo-c/template

diff --git a/srcpkgs/cargo-c/template b/srcpkgs/cargo-c/template
new file mode 100644
index 000000000000..8df5265c5ce8
--- /dev/null
+++ b/srcpkgs/cargo-c/template
@@ -0,0 +1,17 @@
+# Template file for 'cargo-c'
+pkgname=cargo-c
+version=0.9.14
+revision=1
+build_style="cargo"
+hostmakedepends="cargo pkg-config"
+makedepends="openssl-devel"
+short_desc="Cargo applet to build and install C-ABI compatible libraries"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+license=MIT
+homepage="https://github.com/lu-zero/cargo-c"
+distfiles="https://github.com/lu-zero/cargo-c/archive/refs/tags/v${version}.tar.gz"
+checksum=d79c12eae1460803a1ce8b440ae213dc4df63a6f2bf39ebd49eea1d7a008bec6
+
+do_post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (5 preceding siblings ...)
  2023-01-09  7:13 ` ezag
@ 2023-01-09  7:20 ` ezag
  2023-01-09  7:37 ` ezag
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-09  7:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 3764 bytes --]

From 3811b6431163d0e2fa612bfc42ba88d636fcd6c3 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Sun, 8 Jan 2023 21:58:12 +0200
Subject: [PATCH 1/2] New package: librav1e-0.6.2

---
 common/shlibs             |  1 +
 srcpkgs/librav1e-devel    |  1 +
 srcpkgs/librav1e/template | 48 +++++++++++++++++++++++++++++++++++++++
 srcpkgs/rav1e             |  1 +
 4 files changed, 51 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..b0a453e8d94e
--- /dev/null
+++ b/srcpkgs/librav1e/template
@@ -0,0 +1,48 @@
+# Template file for 'librav1e'
+pkgname=librav1e
+version=0.6.2
+revision=1
+build_helper="rust"
+hostmakedepends="cargo cargo-c nasm pkg-config"
+makedepends="rust"
+short_desc="AV1 video encoder suitable for cases where libaom is too slow"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+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 cbuild --release --target ${RUST_TARGET} --destdir ${DESTDIR} --prefix usr
+	cargo auditable build --release --target ${RUST_TARGET}
+}
+
+do_check() {
+	cargo ctest --target ${RUST_TARGET}
+}
+
+do_install() {
+	vlicense LICENSE
+	cargo cinstall --release --target=${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_check() {
+		cargo auditable test --release --target ${RUST_TARGET}
+	}
+	pkg_install() {
+		vbin target/${RUST_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

From 6091e5db1c0e0afcf265d1f5f0fd8bd326fd723e Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Mon, 9 Jan 2023 07:54:27 +0200
Subject: [PATCH 2/2] New package: cargo-c-0.9.14

---
 srcpkgs/cargo-c/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/cargo-c/template

diff --git a/srcpkgs/cargo-c/template b/srcpkgs/cargo-c/template
new file mode 100644
index 000000000000..8df5265c5ce8
--- /dev/null
+++ b/srcpkgs/cargo-c/template
@@ -0,0 +1,17 @@
+# Template file for 'cargo-c'
+pkgname=cargo-c
+version=0.9.14
+revision=1
+build_style="cargo"
+hostmakedepends="cargo pkg-config"
+makedepends="openssl-devel"
+short_desc="Cargo applet to build and install C-ABI compatible libraries"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+license=MIT
+homepage="https://github.com/lu-zero/cargo-c"
+distfiles="https://github.com/lu-zero/cargo-c/archive/refs/tags/v${version}.tar.gz"
+checksum=d79c12eae1460803a1ce8b440ae213dc4df63a6f2bf39ebd49eea1d7a008bec6
+
+do_post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (6 preceding siblings ...)
  2023-01-09  7:20 ` ezag
@ 2023-01-09  7:37 ` ezag
  2023-01-09  8:45 ` ezag
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-09  7:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 3809 bytes --]

From 50e2b303f7235480b2b78ca083da9e6436804899 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Sun, 8 Jan 2023 21:58:12 +0200
Subject: [PATCH 1/2] New package: librav1e-0.6.2

---
 common/shlibs             |  1 +
 srcpkgs/librav1e-devel    |  1 +
 srcpkgs/librav1e/template | 48 +++++++++++++++++++++++++++++++++++++++
 srcpkgs/rav1e             |  1 +
 4 files changed, 51 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..2e944bbfe5f5
--- /dev/null
+++ b/srcpkgs/librav1e/template
@@ -0,0 +1,48 @@
+# Template file for 'librav1e'
+pkgname=librav1e
+version=0.6.2
+revision=1
+build_helper="rust"
+hostmakedepends="cargo cargo-auditable cargo-c nasm pkg-config"
+makedepends="rust"
+short_desc="AV1 video encoder suitable for cases where libaom is too slow"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+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 auditable cbuild --release --target ${RUST_TARGET} \
+		--destdir ${DESTDIR} --prefix usr
+	cargo auditable build --release --target ${RUST_TARGET}
+}
+
+do_check() {
+	cargo auditable ctest --release --target ${RUST_TARGET}
+	cargo auditable test --release --target ${RUST_TARGET}
+}
+
+do_install() {
+	vlicense LICENSE
+	cargo auditable cinstall --release --target=${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/${RUST_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

From 621b03ac843924baa556e528421887383175e3ea Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Mon, 9 Jan 2023 07:54:27 +0200
Subject: [PATCH 2/2] New package: cargo-c-0.9.14

---
 srcpkgs/cargo-c/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/cargo-c/template

diff --git a/srcpkgs/cargo-c/template b/srcpkgs/cargo-c/template
new file mode 100644
index 000000000000..8df5265c5ce8
--- /dev/null
+++ b/srcpkgs/cargo-c/template
@@ -0,0 +1,17 @@
+# Template file for 'cargo-c'
+pkgname=cargo-c
+version=0.9.14
+revision=1
+build_style="cargo"
+hostmakedepends="cargo pkg-config"
+makedepends="openssl-devel"
+short_desc="Cargo applet to build and install C-ABI compatible libraries"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+license=MIT
+homepage="https://github.com/lu-zero/cargo-c"
+distfiles="https://github.com/lu-zero/cargo-c/archive/refs/tags/v${version}.tar.gz"
+checksum=d79c12eae1460803a1ce8b440ae213dc4df63a6f2bf39ebd49eea1d7a008bec6
+
+do_post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (7 preceding siblings ...)
  2023-01-09  7:37 ` ezag
@ 2023-01-09  8:45 ` ezag
  2023-01-09  9:35 ` ezag
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-09  8:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

There is an updated pull request by ezag against master on the void-packages repository

https://github.com/ezag/void-packages librav1e
https://github.com/void-linux/void-packages/pull/41525

New package: librav1e-0.6.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



A patch file from https://github.com/void-linux/void-packages/pull/41525.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-librav1e-41525.patch --]
[-- Type: text/x-diff, Size: 4180 bytes --]

From 0b1b5d8b9ae6a4edd11c8f9229ada6ce6c3b9e0f Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Sun, 8 Jan 2023 21:58:12 +0200
Subject: [PATCH 1/2] New package: librav1e-0.6.2

---
 common/shlibs             |  1 +
 srcpkgs/librav1e-devel    |  1 +
 srcpkgs/librav1e/template | 59 +++++++++++++++++++++++++++++++++++++++
 srcpkgs/rav1e             |  1 +
 4 files changed, 62 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..778ba71b4124
--- /dev/null
+++ b/srcpkgs/librav1e/template
@@ -0,0 +1,59 @@
+# Template file for 'librav1e'
+pkgname=librav1e
+version=0.6.2
+revision=1
+build_helper="rust"
+hostmakedepends="cargo cargo-auditable cargo-c nasm pkg-config"
+makedepends="rust"
+short_desc="AV1 video encoder suitable for cases where libaom is too slow"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+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 auditable cbuild --release --target ${RUST_TARGET} \
+		--destdir ${DESTDIR} --prefix usr
+	cargo auditable build --release --target ${RUST_TARGET}
+}
+
+do_check() {
+	cargo auditable ctest --release --target ${RUST_TARGET}
+	if [ "$XBPS_TARGET_MACHINE" -ne "i686" ]; then
+		# Some tests fail on i686 with message:
+		#
+		# error: ran out of registers during register allocation
+		#
+		# LLVM ERROR: Cannot emit physreg copy instruction
+		# Couldn't compile the test.
+		cargo auditable test --release --target ${RUST_TARGET}
+	fi
+}
+
+do_install() {
+	vlicense LICENSE
+	cargo auditable cinstall --release --target=${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"
+		if [ "$XBPS_TARGET_LIBC" -ne "musl" ]; then
+			# Shared libs are missing on musl build - how to fix this?
+			vmove "usr/lib/*.so"
+		fi
+		vmove usr/lib/pkgconfig
+	}
+}
+
+rav1e_package() {
+	short_desc+=" - standalone binary"
+	pkg_install() {
+		vbin target/${RUST_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

From 4e94ce7183ca3275d47ec8e9211a5d8a8628dec5 Mon Sep 17 00:00:00 2001
From: Eugen Zagorodniy <zag@disroot.org>
Date: Mon, 9 Jan 2023 07:54:27 +0200
Subject: [PATCH 2/2] New package: cargo-c-0.9.14

---
 srcpkgs/cargo-c/template | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 srcpkgs/cargo-c/template

diff --git a/srcpkgs/cargo-c/template b/srcpkgs/cargo-c/template
new file mode 100644
index 000000000000..8df5265c5ce8
--- /dev/null
+++ b/srcpkgs/cargo-c/template
@@ -0,0 +1,17 @@
+# Template file for 'cargo-c'
+pkgname=cargo-c
+version=0.9.14
+revision=1
+build_style="cargo"
+hostmakedepends="cargo pkg-config"
+makedepends="openssl-devel"
+short_desc="Cargo applet to build and install C-ABI compatible libraries"
+maintainer="Eugen Zagorodniy <zag@disroot.org>"
+license=MIT
+homepage="https://github.com/lu-zero/cargo-c"
+distfiles="https://github.com/lu-zero/cargo-c/archive/refs/tags/v${version}.tar.gz"
+checksum=d79c12eae1460803a1ce8b440ae213dc4df63a6f2bf39ebd49eea1d7a008bec6
+
+do_post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (8 preceding siblings ...)
  2023-01-09  8:45 ` ezag
@ 2023-01-09  9:35 ` ezag
  2023-04-10  1:50 ` github-actions
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-01-09  9:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 280 bytes --]

New comment by ezag on void-packages repository

https://github.com/void-linux/void-packages/pull/41525#issuecomment-1375334058

Comment:
@classabbyamp I've fixed cross builds; some tests fail on i686, and *.so libs are missing on *-musl - quite confused about how to handle that

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (9 preceding siblings ...)
  2023-01-09  9:35 ` ezag
@ 2023-04-10  1:50 ` github-actions
  2023-04-10  6:32 ` nekopsykose
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2023-04-10  1:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/41525#issuecomment-1501291191

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (10 preceding siblings ...)
  2023-04-10  1:50 ` github-actions
@ 2023-04-10  6:32 ` nekopsykose
  2023-04-11 18:53 ` ezag
  2023-04-11 18:53 ` [PR PATCH] [Closed]: " ezag
  13 siblings, 0 replies; 15+ messages in thread
From: nekopsykose @ 2023-04-10  6:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

New comment by nekopsykose on void-packages repository

https://github.com/void-linux/void-packages/pull/41525#issuecomment-1501455319

Comment:
>  *.so libs are missing on *-musl - quite confused about how to handle that  

cargo-c defaults to only --library-type staticlib for `*-musl` triples, you can pass `--library-type cdylib` to make it make one.

it's safe to unconditionally pass since it's what you want for both glibc and musl anyway (in this case)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (11 preceding siblings ...)
  2023-04-10  6:32 ` nekopsykose
@ 2023-04-11 18:53 ` ezag
  2023-04-11 18:53 ` [PR PATCH] [Closed]: " ezag
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-04-11 18:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 223 bytes --]

New comment by ezag on void-packages repository

https://github.com/void-linux/void-packages/pull/41525#issuecomment-1503928925

Comment:
The package already added via https://github.com/void-linux/void-packages/pull/42438

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Closed]: New package: librav1e-0.6.2
  2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
                   ` (12 preceding siblings ...)
  2023-04-11 18:53 ` ezag
@ 2023-04-11 18:53 ` ezag
  13 siblings, 0 replies; 15+ messages in thread
From: ezag @ 2023-04-11 18:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

There's a closed pull request on the void-packages repository

New package: librav1e-0.6.2
https://github.com/void-linux/void-packages/pull/41525

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-04-11 18:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-08 21:20 [PR PATCH] New package: librav1e-0.6.2 ezag
2023-01-08 21:37 ` [PR PATCH] [Updated] " ezag
2023-01-08 23:08 ` [PR REVIEW] " classabbyamp
2023-01-09  3:49 ` [PR PATCH] [Updated] " ezag
2023-01-09  4:20 ` ezag
2023-01-09  4:50 ` ezag
2023-01-09  7:13 ` ezag
2023-01-09  7:20 ` ezag
2023-01-09  7:37 ` ezag
2023-01-09  8:45 ` ezag
2023-01-09  9:35 ` ezag
2023-04-10  1:50 ` github-actions
2023-04-10  6:32 ` nekopsykose
2023-04-11 18:53 ` ezag
2023-04-11 18:53 ` [PR PATCH] [Closed]: " ezag

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).