aboutsummaryrefslogtreecommitdiffstats
path: root/main/sngtc_client/APKBUILD
blob: 618e9c5d81d80283b722a338e78e7073ae8bc7be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sngtc_client
pkgver=1.3.6
pkgrel=0
pkgdesc="Sangoma Media Transcode client and lib"
url="http://wiki.sangoma.com/Transcoding-distributed-install"
arch="all"
license="LGPL"
depends=""
makedepends="ortp-dev linux-headers"
install=""
subpackages="$pkgname-dev"
# they ship firmware updater and server lib as precompiled closed source
# thats why the source package holds <arch>. 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"

_builddir="$srcdir"/sng-tc-linux-$pkgver.i686
prepare() {
	local i
	cd "$_builddir"

	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	# use dynamic ortp from system
	rm -r client/sngtc_client/*ortp*
}

build() {
	cd "$_builddir"
	make libsngtc libsngtc_node sngtc_client || return 1 
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" libsngtc_node-install sngtc_client-install || return 1
	mkdir -p "$pkgdir"/usr/include/sng_tc
	cp server/libsngtc/*.h "$pkgdir"/usr/include/sng_tc/
}

md5sums="f8334310903b3496696900f2e9cb1450  sng-tc-linux-1.3.6.i686.tgz
2c6b702af7ec9adc144823000012336c  sngtc_client-dynamic-ortp.patch
d8e7aab5a189163457e72af5befcc8aa  musl-fix-types.patch
e9c6076ba8fb08ac680e92df1feb7795  ortp.patch"
sha256sums="977eaccb452eec89a99d394f93dc0589b53a09f97a5830667b41a07726e1d303  sng-tc-linux-1.3.6.i686.tgz
7b1ce78357184e58073b010c1074866bdeefe855aeda204793f476274ad0beed  sngtc_client-dynamic-ortp.patch
38d91bed0a5cefdac07d2fa2600e61b6580e2e90f6056b7b2db3a39ca355cb85  musl-fix-types.patch
e22f77b4ce280e2c436143eab8a7170eaee7a21ef393b5be655181ab2efa5587  ortp.patch"
sha512sums="521e869465f5679b8ff517ab0cb8269f9189bf5aeb5bee5bee7a0e2402e725d89aa79b1e86216c5a991c5fb96ccc560ba0457bc49867d57ed702e3dec9c62bf9  sng-tc-linux-1.3.6.i686.tgz
2b784c56d1482ad9069502c408138d0c0b0ea6b393902d45b09200a3a588e02138c21a1fbee4d5715711e578130c30c607cae59f7ee24b8ce5bccd5a9c2fce14  sngtc_client-dynamic-ortp.patch
008447bf7c8f690cc9ee5efd232dee1b4f3f35e94827a518f88a7c46b4741b6d1e8418c32f099c807e61d7ae815467aed3a3b0134114e75574397ae324540067  musl-fix-types.patch
33163306a2207e70a9a8535d6b1ca9706d44e5076a570525db15c47c6aeb6f58e035bfec4826f8763422a505acdad5cfa7b59c60b544f681ad319d26d75d2977  ortp.patch"