Date: Friday, January 27, 2023 @ 19:51:57
  Author: dvzrv
Revision: 1388962

Add roc-toolkit as new dependency for pipewire.

Added:
  roc-toolkit/
  roc-toolkit/repos/
  roc-toolkit/trunk/
  roc-toolkit/trunk/PKGBUILD
  roc-toolkit/trunk/roc-toolkit-0.2.1-destdir.patch

---------------------------------+
 PKGBUILD                        |   69 +++++++++++++++++++++++++++++++++
 roc-toolkit-0.2.1-destdir.patch |   78 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 147 insertions(+)

Added: roc-toolkit/trunk/PKGBUILD
===================================================================
--- roc-toolkit/trunk/PKGBUILD                          (rev 0)
+++ roc-toolkit/trunk/PKGBUILD  2023-01-27 19:51:57 UTC (rev 1388962)
@@ -0,0 +1,69 @@
+# Maintainer: David Runge <[email protected]>
+
+pkgname=roc-toolkit
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="Real-time audio streaming over the network"
+arch=(x86_64)
+url="https://github.com/roc-streaming/roc-toolkit/";
+license=(MPL2 custom:CC0)
+depends=(glibc libunwind libuv)
+makedepends=(alsa-lib cpputest gengetopt libpulse openfec ragel scons sox 
speexdsp)
+optdepends=(
+  'libpulse: for roc-conv, roc-receive and roc-send'
+  'sox: for roc-conv, roc-receive and roc-send'
+)
+provides=(libroc.so)
+source=(
+  $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
+)
+sha512sums=('482d11d35bdb2b298f368d4d0c2c223f48a166c57880c0d19df503923ec36a1515ed2d32d110966ceb0de4771584adf2ccb50a1ae5fbe9e5c47c42d17d9cc37c'
+            
'76ca9f78fe4eff47fac18c8b66aadb72f88f9a04fbf073f36cecaa73cd595ad397ccf59d5ced057ace1494b9d22954dcc0029086235d0a98b45fa35e52921cc4')
+b2sums=('0d84c616006f3944a13c63ec3bee0a17d909464049d7b3ab2f45c27cabe064ab1967721b29e2c8e060a0e22f6d51eb4420c1b2c3f2840d3bc4f51bd4f71e6db7'
+        
'f61dc0e0c21c4951fba7448bcfacd665e66920ff54378db557e28ff82283168242fe8fc24073b6ccc77ece6bf0cc39f798c44a1b159c318079046e40f32433bb')
+
+prepare() {
+  patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-0.2.1-destdir.patch
+}
+
+build() {
+  local scons_options=(
+    --prefix=/usr
+    --libdir=/usr/lib
+    --enable-tests
+    --enable-examples
+  )
+
+  cd $pkgname-$pkgver
+  scons "${scons_options[@]}"
+}
+
+check() {
+  local scons_options=(
+    --prefix=/usr
+    --libdir=/usr/lib
+    --enable-tests
+    --enable-examples
+  )
+
+  cd $pkgname-$pkgver
+  scons test "${scons_options[@]}"
+}
+
+package() {
+  local scons_options=(
+    --prefix=/usr
+    --libdir=/usr/lib
+  )
+  depends+=(
+    openfec libopenfec.so
+    speexdsp libspeexdsp.so
+  )
+
+  cd $pkgname-$pkgver
+  scons DESTDIR="$pkgdir/" "${scons_options[@]}" install
+
+  install -vDm 644 3rdparty/hedley/COPYING -t 
"$pkgdir/usr/share/licenses/$pkgname/hedley.COPYING"
+}

Added: roc-toolkit/trunk/roc-toolkit-0.2.1-destdir.patch
===================================================================
--- roc-toolkit/trunk/roc-toolkit-0.2.1-destdir.patch                           
(rev 0)
+++ roc-toolkit/trunk/roc-toolkit-0.2.1-destdir.patch   2023-01-27 19:51:57 UTC 
(rev 1388962)
@@ -0,0 +1,78 @@
+diff --git i/SConstruct w/SConstruct
+index 081e26a2..7dad6ee4 100644
+--- i/SConstruct
++++ w/SConstruct
+@@ -296,6 +296,7 @@ env.OverrideFromArgument('BREATHE_APIDOC', 
default='breathe-apidoc')
+ env.PrependFromArgument('CPPFLAGS')
+ env.PrependFromArgument('CXXFLAGS')
+ env.PrependFromArgument('CFLAGS')
++env.PrependFromArgument('DESTDIR', default='/')
+ env.PrependFromArgument('LINKFLAGS', names=['LINKFLAGS', 'LDFLAGS'])
+ env.PrependFromArgument('STRIPFLAGS')
+ 
+diff --git i/docs/SConscript w/docs/SConscript
+index c32d9519..a18c8076 100644
+--- i/docs/SConscript
++++ w/docs/SConscript
+@@ -77,5 +77,5 @@ if GetOption('enable_sphinx'):
+ doc_env.AlwaysBuild(doc_env.Alias('docs', ['doxygen', 'sphinx']))
+ 
+ for manpage in doc_env.GlobFiles('#docs/sphinx/manuals/*.rst'):
+-    doc_env.AddDistFile(GetOption('mandir'), '#docs/man/%s.1' %
++    doc_env.AddDistFile(doc_env["DESTDIR"] + GetOption('mandir'), 
'#docs/man/%s.1' %
+                         manpage.srcnode().name.replace('.rst', 
'').replace('_', '-'))
+diff --git i/src/SConscript w/src/SConscript
+index b59f67a7..8dad9f87 100644
+--- i/src/SConscript
++++ w/src/SConscript
+@@ -88,14 +88,14 @@ if not GetOption('disable_shared') or 
GetOption('enable_static') or GetOption('e
+         public_api_targets += [install_target]
+         public_api_targets += symlinks
+ 
+-        env.AddDistFile(env['ROC_SYSTEM_LIBDIR'], install_target)
++        env.AddDistFile(env['DESTDIR'] + env['ROC_SYSTEM_LIBDIR'], 
install_target)
+ 
+         if env.NeedsFixupSharedLibrary():
+             env.AddDistAction(env.FixupSharedLibrary(
+                 os.path.join(env['ROC_SYSTEM_LIBDIR'], 
install_target[0].name)))
+ 
+         for lnk in symlinks:
+-            env.AddDistFile(env['ROC_SYSTEM_LIBDIR'], lnk)
++            env.AddDistFile(env['DESTDIR'] + env['ROC_SYSTEM_LIBDIR'], lnk)
+ 
+     if GetOption('enable_static'):
+         thirdparty_libs = libs_env.GetThirdPartyStaticLibs()
+@@ -123,13 +123,13 @@ if not GetOption('disable_shared') or 
GetOption('enable_static') or GetOption('e
+         install_target = env.Install(env['ROC_BINDIR'], libroc_static)
+         public_api_targets += [install_target]
+ 
+-        env.AddDistFile(env['ROC_SYSTEM_LIBDIR'], install_target)
++        env.AddDistFile(env['DESTDIR'] + env['ROC_SYSTEM_LIBDIR'], 
install_target)
+ 
+     if not GetOption('disable_shared') or GetOption('enable_static'):
+         env.Alias('public_api', public_api_targets, env.Action(''))
+         env.AlwaysBuild('public_api')
+ 
+-        env.AddDistFile(env['ROC_SYSTEM_INCDIR'], 
'#src/public_api/include/roc')
++        env.AddDistFile(env['DESTDIR'] + env['ROC_SYSTEM_INCDIR'], 
'#src/public_api/include/roc')
+ 
+         if 'PKG_CONFIG_PATH' in env.Dictionary():
+             pc_file = env.GeneratePkgConfig(
+@@ -141,7 +141,7 @@ if not GetOption('disable_shared') or 
GetOption('enable_static') or GetOption('e
+                 desc='Real-time audio streaming over the network.',
+                 url='https://roc-streaming.org',
+                 version=env['ROC_VERSION'])
+-            env.AddDistFile(env['PKG_CONFIG_PATH'], pc_file)
++            env.AddDistFile(env['DESTDIR'] + env['PKG_CONFIG_PATH'], pc_file)
+ 
+ if GetOption('enable_examples'):
+     examples_env = subenvs.examples.Clone()
+@@ -197,7 +197,7 @@ if not GetOption('disable_tools'):
+         env.Alias(exe_name, [target], env.Action(''))
+         env.AlwaysBuild(exe_name)
+ 
+-        env.AddDistFile(env['ROC_SYSTEM_BINDIR'], target)
++        env.AddDistFile(env['DESTDIR'] + env['ROC_SYSTEM_BINDIR'], target)
+ 
+ if GetOption('enable_tests') or GetOption('enable_benchmarks'):
+     common_test_env = subenvs.tests.Clone()

Reply via email to