# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=sngtc_client pkgver=1.3.9 pkgrel=1 pkgdesc="Sangoma Media Transcode client and lib" url="https://wiki.sangoma.com/Transcoding-distributed-install" arch="all" license="LGPL" options="!check" #no test suite makedepends="ortp-dev linux-headers bctoolbox-dev" subpackages="$pkgname-dev" depends_dev="$pkgname=$pkgver-r$pkgrel" # they ship firmware updater and server lib as precompiled closed source # thats why the source package holds . The client code appears to # be equal on both i686 an x86_64 so we just pick i686 package for all # our archs. source="ftp://ftp.sangoma.com/linux/transcoding/sng-tc-linux-$pkgver.i686.tgz sngtc_client-dynamic-ortp.patch musl-fix-types.patch ortp.patch bctoolbox-underlinking.patch" builddir="$srcdir"/sng-tc-linux-$pkgver.i686 prepare() { default_prepare # use dynamic ortp from system rm -r client/sngtc_client/*ortp* } build() { make libsngtc libsngtc_node sngtc_client } check() { make test } package() { make DESTDIR="$pkgdir" libsngtc_node-install sngtc_client-install mkdir -p "$pkgdir"/usr/include/sng_tc cp server/libsngtc/*.h "$pkgdir"/usr/include/sng_tc/ } sha512sums="c0449499418260a2bc2aafe7ae864ec72865a38e5af621a438265c32ae348f6c954f5029b0f56abecfc31a1a1022f7a3fb8b301589f98f681009db56d43d1afc sng-tc-linux-1.3.9.i686.tgz 2b784c56d1482ad9069502c408138d0c0b0ea6b393902d45b09200a3a588e02138c21a1fbee4d5715711e578130c30c607cae59f7ee24b8ce5bccd5a9c2fce14 sngtc_client-dynamic-ortp.patch 008447bf7c8f690cc9ee5efd232dee1b4f3f35e94827a518f88a7c46b4741b6d1e8418c32f099c807e61d7ae815467aed3a3b0134114e75574397ae324540067 musl-fix-types.patch 5d1dcf45834e192f9c14681aa9e7f5fc58ae08b283f25f0565ac6522f8af06bf71585e3dd7c92ae727c86fa7bfbe7a27bd7bfcafe4913ab005d857a1fef34a56 ortp.patch be6cc8a349b2dede19223cef2d888fc6ab183d832d75d77dfbd8b029b31814f9391d9b6af08d81e9765231faef0cdc9a3c50e7f847401d6ccc740f2cedd2f39c bctoolbox-underlinking.patch"