From e9a36869743fe4c90c9af39e336be228b0cf4d1a Mon Sep 17 00:00:00 2001 From: Paper Date: Sat, 7 Nov 2020 10:53:49 +0100 Subject: [PATCH 1/2] New package: cpptoml-0.1.1 --- srcpkgs/cpptoml/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/cpptoml/template diff --git a/srcpkgs/cpptoml/template b/srcpkgs/cpptoml/template new file mode 100644 index 00000000000..d71d29e8ffb --- /dev/null +++ b/srcpkgs/cpptoml/template @@ -0,0 +1,15 @@ +# Template file for 'cpptoml' +pkgname=cpptoml +version=0.1.1 +revision=1 +build_style=cmake +short_desc="Header-only library for parsing TOML" +maintainer="Paper " +license="MIT" +homepage="https://github.com/skystrife/cpptoml/" +distfiles="https://github.com/skystrife/cpptoml/archive/v${version}.tar.gz" +checksum=23af72468cfd4040984d46a0dd2a609538579c78ddc429d6b8fd7a10a6e24403 + +post_install() { + vlicense LICENSE +} From 5582ec8cac80909e84b64c1fee269c09d07de3a1 Mon Sep 17 00:00:00 2001 From: Paper Date: Sat, 7 Nov 2020 10:54:03 +0100 Subject: [PATCH 2/2] New package: wireplumber-0.3.0 --- .../wireplumber-0.3.0-devendor_cpptoml.patch | 66 +++++++++++++++++++ srcpkgs/wireplumber/template | 17 +++++ 2 files changed, 83 insertions(+) create mode 100644 srcpkgs/wireplumber/patches/wireplumber-0.3.0-devendor_cpptoml.patch create mode 100644 srcpkgs/wireplumber/template diff --git a/srcpkgs/wireplumber/patches/wireplumber-0.3.0-devendor_cpptoml.patch b/srcpkgs/wireplumber/patches/wireplumber-0.3.0-devendor_cpptoml.patch new file mode 100644 index 00000000000..8ba655a2d7b --- /dev/null +++ b/srcpkgs/wireplumber/patches/wireplumber-0.3.0-devendor_cpptoml.patch @@ -0,0 +1,66 @@ +patch from arch linux +diff -ruN lib/wptoml/array.cpp lib/wptoml/array.cpp +--- lib/wptoml/array.cpp 2020-06-29 18:36:49.000000000 +0200 ++++ lib/wptoml/array.cpp 2020-07-19 09:50:14.930311451 +0200 +@@ -10,7 +10,7 @@ + #include + + /* CPPTOML */ +-#include ++#include + + /* TOML */ + #include "private.h" +diff -ruN lib/wptoml/file.cpp lib/wptoml/file.cpp +--- lib/wptoml/file.cpp 2020-06-29 18:36:49.000000000 +0200 ++++ lib/wptoml/file.cpp 2020-07-19 09:50:28.923522152 +0200 +@@ -7,7 +7,7 @@ + */ + + /* CPPTOML */ +-#include ++#include + + /* TOML */ + #include "private.h" +diff -ruN lib/wptoml/table.cpp lib/wptoml/table.cpp +--- lib/wptoml/table.cpp 2020-06-29 18:36:49.000000000 +0200 ++++ lib/wptoml/table.cpp 2020-07-19 09:50:46.786698703 +0200 +@@ -10,7 +10,7 @@ + #include + + /* CPPTOML */ +-#include ++#include + + /* TOML */ + #include "private.h" +diff -ruN meson.build meson.build +--- meson.build 2020-06-29 18:36:49.000000000 +0200 ++++ meson.build 2020-07-19 10:17:13.288978511 +0200 +@@ -26,9 +26,13 @@ + wireplumber_config_dir = join_paths(get_option('prefix'), get_option('sysconfdir'), 'wireplumber') + endif + +-cmake = import('cmake') +-cpptoml = cmake.subproject('cpptoml') +-cpptoml_dep = cpptoml.dependency('cpptoml') ++if get_option('wrap_mode') == 'nodownload' ++ cpptoml_dep = dependency('cpptoml') ++else ++ cmake = import('cmake') ++ cpptoml = cmake.subproject('cpptoml') ++ cpptoml_dep = cpptoml.dependency('cpptoml') ++endif + + gobject_dep = dependency('gobject-2.0', version : '>= 2.58') + gmodule_dep = dependency('gmodule-2.0', version : '== ' + gobject_dep.version()) +diff -ruN subprojects/cpptoml.wrap subprojects/cpptoml.wrap +--- subprojects/cpptoml.wrap 2020-06-29 18:36:49.000000000 +0200 ++++ subprojects/cpptoml.wrap 2020-07-19 10:16:27.232734437 +0200 +@@ -1,4 +1,4 @@ + [wrap-git] + directory=cpptoml + url=https://github.com/skystrife/cpptoml.git +-revision=master ++revision=v0.1.1 diff --git a/srcpkgs/wireplumber/template b/srcpkgs/wireplumber/template new file mode 100644 index 00000000000..05b8d680a84 --- /dev/null +++ b/srcpkgs/wireplumber/template @@ -0,0 +1,17 @@ +# Template file for 'wireplumber' +pkgname=wireplumber +version=0.3.0 +revision=1 +build_style=meson +hostmakedepends="git gobject-introspection pkg-config cmake" +makedepends="glib-devel cpptoml pipewire-devel" +short_desc="Modular session / policy manager for PipeWire" +maintainer="Paper " +license="MIT" +homepage="https://gitlab.freedesktop.org/pipewire/wireplumber/" +distfiles="https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/$version/wireplumber-$version.tar.gz" +checksum=bb63a8cdd0b0a50a4faff4329ac2eacf986709ac1f98a7ceaaa94554534fc3c2 + +post_install() { + vlicense LICENSE +}