aboutsummaryrefslogtreecommitdiffstats
path: root/community/coturn/APKBUILD
blob: 1f19921526c496aef25ef61430f12055b6fd8100 (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=coturn
pkgver=4.5.1.1
pkgrel=1
pkgdesc="Free open source implementation of TURN and STUN Server"
url="https://github.com/coturn/coturn"
arch="all"
license="BSD-3-Clause"
makedepends="openssl-dev libevent-dev linux-headers sqlite-dev"
pkgusers="$pkgname"
pkggroups="$pkgname"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc $pkgname-dev $pkgname-doc"
# https://github.com/coturn/coturn/issues/193
source="coturn-$pkgver.tar.gz::https://github.com/coturn/coturn/archive/$pkgver.tar.gz
	remove-check_oauth-test.patch
	turnserver.initd
	"
builddir="$srcdir/coturn-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share \
		--localstatedir=/var \
		--disable-rpath \
		--sysconfdir=/etc/$pkgname \
		--turndbdir=/var/lib/$pkgname
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/turnserver.initd \
		"$pkgdir"/etc/init.d/turnserver
}

sha512sums="a5e1aecdab5a7060ffbc73cc8dd294cafa701f2e0d2a827e40901cb6001af5a2c5ecbafdf14662410713818aad0ad259133f0dc9b34730bf7911863e1e255f70  coturn-4.5.1.1.tar.gz
3ad78467a509ed5c3eeac8585e13b11d276700cf45a8829e398a39c2056690aa9a66c3d40b73e2ce5815ce3199177220fb24224430919f49a70031f12e7d8c95  remove-check_oauth-test.patch
e686dc752618b2da2f6127ab11c49767bfcf228edf458cefe2853093baa845adb2b3159e850db1721e7474c4938fb237dd12bdfd7fd4db2ee73fbd0cb19af17d  turnserver.initd"