Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: codec2-1.0.1
@ 2021-11-29 20:17 unspecd
  2021-11-29 20:19 ` [PR PATCH] [Updated] " unspecd
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: unspecd @ 2021-11-29 20:17 UTC (permalink / raw)
  To: ml

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

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

https://github.com/unspecd/void-packages pkg/codec2
https://github.com/void-linux/void-packages/pull/34315

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

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

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

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](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-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl


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

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

From 0006a340fbc6fcfbb86d970904ba61a41e0fa086 Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Mon, 29 Nov 2021 00:50:13 +1100
Subject: [PATCH] New package: codec2-1.0.1

---
 common/shlibs                      |  1 +
 srcpkgs/codec2-devel               |  1 +
 srcpkgs/codec2/patches/cross.patch | 15 +++++++++++++++
 srcpkgs/codec2/template            | 22 ++++++++++++++++++++++
 4 files changed, 39 insertions(+)
 create mode 120000 srcpkgs/codec2-devel
 create mode 100644 srcpkgs/codec2/patches/cross.patch
 create mode 100644 srcpkgs/codec2/template

diff --git a/common/shlibs b/common/shlibs
index dac22845d445..41776172f36c 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4070,3 +4070,4 @@ libbrial_groebner.so.3 brial-1.2.10_1
 libm4ri-0.0.20200125.so m4ri-20200125_1
 libm4rie-0.0.20200125.so m4rie-20200125_1
 libptytty.so.0 libptytty-2.0_1
+libcodec2.so.1.0 codec2-1.0.1_1
diff --git a/srcpkgs/codec2-devel b/srcpkgs/codec2-devel
new file mode 120000
index 000000000000..989913a1d9d7
--- /dev/null
+++ b/srcpkgs/codec2-devel
@@ -0,0 +1 @@
+codec2/
\ No newline at end of file
diff --git a/srcpkgs/codec2/patches/cross.patch b/srcpkgs/codec2/patches/cross.patch
new file mode 100644
index 000000000000..46b52c0b805c
--- /dev/null
+++ b/srcpkgs/codec2/patches/cross.patch
@@ -0,0 +1,15 @@
+# reason:
+#   [110/327] Generating codebookjvm.c
+#   FAILED: src/codebookjvm.c /builddir/codec2-1.0.1/build/src/codebookjvm.c
+#   /bin/sh: line 1: /builddir/codec2-1.0.1/build/src/generate_codebook: cannot execute binary file: Exec format error
+
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -68,6 +68,7 @@
+     ExternalProject_Add(codec2_native
+        SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..
+        BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/codec2_native
++       CMAKE_ARGS -DCMAKE_C_COMPILER=$ENV{CC_FOR_BUILD} -DCMAKE_C_FLAGS=$ENV{CFLAGS_FOR_BUILD}
+        BUILD_COMMAND ${CMAKE_COMMAND} --build . --target generate_codebook
+        INSTALL_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/codec2_native/src/generate_codebook ${CMAKE_CURRENT_BINARY_DIR}
+        BUILD_BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/generate_codebook
diff --git a/srcpkgs/codec2/template b/srcpkgs/codec2/template
new file mode 100644
index 000000000000..54655d2686a2
--- /dev/null
+++ b/srcpkgs/codec2/template
@@ -0,0 +1,22 @@
+# Template file for 'codec2'
+pkgname=codec2
+version=1.0.1
+revision=1
+build_style=cmake
+short_desc="Low bit rate speech codec"
+maintainer="Evgeny Ermakov <evgeny.v.ermakov@gmail.com>"
+license="LGPL-2.1-only"
+homepage="https://www.rowetel.com/codec2.html"
+distfiles="https://github.com/drowe67/codec2/archive/v${version}.tar.gz"
+checksum=14227963940d79e0ec5af810f37101b30e1c7e8555abd96c56b3c0473abac8ef
+
+codec2-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/cmake
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.so"
+	}
+}

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

end of thread, other threads:[~2021-12-18 16:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29 20:17 [PR PATCH] New package: codec2-1.0.1 unspecd
2021-11-29 20:19 ` [PR PATCH] [Updated] " unspecd
2021-11-29 20:42 ` unspecd
2021-11-29 20:47 ` unspecd
2021-11-29 20:57 ` Chocimier
2021-11-29 21:09 ` unspecd
2021-11-29 21:14 ` Chocimier
2021-11-29 23:04 ` [PR PATCH] [Updated] " unspecd
2021-11-29 23:30 ` unspecd
2021-11-30  0:07 ` unspecd
2021-12-18 14:29 ` Chocimier
2021-12-18 16:03 ` [PR PATCH] [Merged]: " Chocimier

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).