Date: Saturday, January 28, 2023 @ 12:22:58 Author: dvzrv Revision: 1389349
upgpkg: roc-toolkit 0.2.1-3: Rebuild to reduce library requirements. Apply upstreamed patch to remove libpulse and sox from pkgconfig file: https://github.com/roc-streaming/roc-toolkit/issues/506 Added: roc-toolkit/trunk/roc-toolkit-0.2.1-pkgconfig_deps.patch Modified: roc-toolkit/trunk/PKGBUILD ----------------------------------------+ PKGBUILD | 11 +++++++--- roc-toolkit-0.2.1-pkgconfig_deps.patch | 34 +++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-28 11:09:22 UTC (rev 1389348) +++ PKGBUILD 2023-01-28 12:22:58 UTC (rev 1389349) @@ -2,7 +2,7 @@ pkgname=roc-toolkit pkgver=0.2.1 -pkgrel=2 +pkgrel=3 pkgdesc="Real-time audio streaming over the network" arch=(x86_64) url="https://github.com/roc-streaming/roc-toolkit/" @@ -18,14 +18,19 @@ $url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz # add support for DESTDIR: https://github.com/roc-streaming/roc-toolkit/pull/505 $pkgname-0.2.1-destdir.patch + # remove unnecessary library dependencies from pkg-config integration: https://github.com/roc-streaming/roc-toolkit/pull/507 + $pkgname-0.2.1-pkgconfig_deps.patch ) sha512sums=('482d11d35bdb2b298f368d4d0c2c223f48a166c57880c0d19df503923ec36a1515ed2d32d110966ceb0de4771584adf2ccb50a1ae5fbe9e5c47c42d17d9cc37c' - '76ca9f78fe4eff47fac18c8b66aadb72f88f9a04fbf073f36cecaa73cd595ad397ccf59d5ced057ace1494b9d22954dcc0029086235d0a98b45fa35e52921cc4') + '76ca9f78fe4eff47fac18c8b66aadb72f88f9a04fbf073f36cecaa73cd595ad397ccf59d5ced057ace1494b9d22954dcc0029086235d0a98b45fa35e52921cc4' + '59ab91620a1c1a013f5f3da51d78d0e56df10fb5c3e21e156c0a86929652f7f9921798b2b8ada1ab8056109a9c30712e9dfa00f41697b3ca6d81e5ff92d0dfdf') b2sums=('0d84c616006f3944a13c63ec3bee0a17d909464049d7b3ab2f45c27cabe064ab1967721b29e2c8e060a0e22f6d51eb4420c1b2c3f2840d3bc4f51bd4f71e6db7' - 'f61dc0e0c21c4951fba7448bcfacd665e66920ff54378db557e28ff82283168242fe8fc24073b6ccc77ece6bf0cc39f798c44a1b159c318079046e40f32433bb') + 'f61dc0e0c21c4951fba7448bcfacd665e66920ff54378db557e28ff82283168242fe8fc24073b6ccc77ece6bf0cc39f798c44a1b159c318079046e40f32433bb' + '7cff5118b8773f3266d345f410308e110bd9c4615b230ce6586def53ea0028c6c417ba66bde61be472ac5ae7988eae25ffb858ce9d2b3431794c155d2149752d') prepare() { patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-0.2.1-destdir.patch + patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-0.2.1-pkgconfig_deps.patch } build() { Added: roc-toolkit-0.2.1-pkgconfig_deps.patch =================================================================== --- roc-toolkit-0.2.1-pkgconfig_deps.patch (rev 0) +++ roc-toolkit-0.2.1-pkgconfig_deps.patch 2023-01-28 12:22:58 UTC (rev 1389349) @@ -0,0 +1,34 @@ +diff --git i/3rdparty/SConscript w/3rdparty/SConscript +index 8083170b..cb236dff 100644 +--- i/3rdparty/SConscript ++++ w/3rdparty/SConscript +@@ -240,9 +240,6 @@ if 'pulseaudio' in autobuild_dependencies: + elif 'pulseaudio' in system_dependencies: + conf = Configure(env, custom_tests=env.CustomTests) + +- if not conf.AddPkgConfigDependency('libpulse', '--cflags --libs'): +- conf.env.AddPkgConfigLibs(['pulse']) +- + if not conf.CheckLibWithHeaderExt( + 'pulse', 'pulse/pulseaudio.h', 'C', run=not is_crosscompiling): + env.Die("libpulse not found (see 'config.log' for details)") +@@ -252,9 +249,6 @@ elif 'pulseaudio' in system_dependencies: + if GetOption('enable_examples'): + conf = Configure(subenvs.examples, custom_tests=env.CustomTests) + +- if not conf.AddPkgConfigDependency('libpulse-simple', '--cflags --libs'): +- conf.env.AddPkgConfigLibs(['pulse-simple']) +- + if not conf.CheckLibWithHeaderExt( + 'pulse-simple', 'pulse/simple.h', 'C', run=not is_crosscompiling): + env.Die("libpulse-simple not found (see 'config.log' for details)") +@@ -292,9 +286,6 @@ if 'sox' in autobuild_dependencies: + elif 'sox' in system_dependencies: + conf = Configure(env, custom_tests=env.CustomTests) + +- if not conf.AddPkgConfigDependency('sox', '--cflags --libs'): +- conf.env.AddPkgConfigLibs(['sox']) +- + if not is_crosscompiling: + if not conf.CheckLibWithHeaderExt( + 'sox', 'sox.h', 'C',
