aboutsummaryrefslogblamecommitdiffstats
path: root/testing/janus-gateway/APKBUILD
blob: 72700a1219f75ec14c41073ffb67479920eec339 (plain) (tree)
1
2
3
4
5
6
7
8


                                                   
             
        

                                      
                                               




                                                                              
                                                                           
                                
                                                                                                            






                                          






                                                      

















                                               
                                     











                                                                             
                                                                                                                                                                         

                                                                                                                                                      
# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=janus-gateway
pkgver=0.11.1
pkgrel=1
pkgdesc="Janus WebRTC Server"
url="https://janus.conf.meetecho.com/"
arch="all !mips !mips64" # nodejs / npm missing
license="GPL-3.0-only"
install="$pkgname.pre-install"
makedepends="autoconf automake libtool gengetopt lua5.3-dev cmake libsrtp-dev
	libnice-dev jansson-dev libconfig-dev libusrsctp-dev libmicrohttpd-dev
	libwebsockets-dev rabbitmq-c-dev curl-dev libogg-dev libopusenc-dev
	lua duktape-dev npm doxygen graphviz ffmpeg-dev zlib-dev libogg-dev
	libuv-dev sofia-sip-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/meetecho/janus-gateway/archive/refs/tags/v$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	"
subpackages="$pkgname-doc $pkgname-openrc"
options="!check" # missing aiortc

# nanomsg not available on armv7
case "$CARCH" in
	arm*)
		;;
	*)
		makedepends="$makedepends nanomsg-dev"
		;;
esac

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--runstatedir=/run \
		--enable-sample-event-handler \
		--enable-rest \
		--enable-javascript-es-module \
		--enable-all-js-modules \
		--enable-post-processing \
		--enable-json-logger \
		--enable-plugin-lua \
		--enable-plugin-sip \
		--enable-plugin-duktape \
		--enable-docs \
		--disable-aes-gcm
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="794ec1be2f9fe9fb198350c9cff5c58ca4043a1de0da9d645f4b61016335ddf4accedf5ff289a938afa9b8959c885329650962e32ef61aac422bc86b386660f0  janus-gateway-0.11.1.tar.gz
942d8566219a426671d78b962f1584a910137995a2dbfc9af2a5c2901f30dc8992bbc749543d149d9f3d24bd751090abc226fca405276450ef84acff1cd74cc1  janus-gateway.initd
f442a419a435f5d1adab673011b7689a5680064f32f712e5e4668c486ce10f1442822c60cb302ee850ddc576a9e9f610a0863f02204e56f1fc68aa3ee312ebe0  janus-gateway.confd"