summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79c4cceb57d735798d6dd63d0fa67bdc8e8289c4 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: feighur
# Maintainer: robertfoster
# Contributor: Maurizio Porrato <maurizio.porrato@gmail.com>

pkgname=janus-gateway
pkgver=0.11.2
pkgrel=1
pkgdesc="An open source, general purpose, WebRTC server"
arch=('i686' 'x86_64')
url='https://janus.conf.meetecho.com'
license=('GPL3')
depends=('glib2'
  'jansson'
  'libconfig'
  'libmicrohttpd'
  'libnice'
  'libsrtp'
  'libusrsctp'
  'openssl')
optdepends=('curl: TURN REST API support, RTSP support in Streaming/Event Handler plugin'
  'ffmpeg: Post-processor'
  'libogg: Voicemail plugin and/or post-processor'
  'librabbitmq-c: RabbitMQ support for the Janus API or events'
  'libwebsockets: WebSockets support for Janus API'
  'lua: Lua plugin'
  'nanomsg: Nanomsg support for the Janus API'
  'opus: Bridge plugin'
  'paho-mqtt-c-git: MQTT support for the Janus API or events'
  'sofia-sip: SIP plugin')
makedepends=('curl'
  'ffmpeg'
  'gengetopt'
  'libogg'
  'librabbitmq-c'
  'libwebsockets'
  'lua'
  'nanomsg'
  'opus'
  'paho-mqtt-c-git'
  'sofia-sip')
backup=('etc/janus/janus.eventhandler.gelfevh.jcfg'
  'etc/janus/janus.eventhandler.mqttevh.jcfg'
  'etc/janus/janus.eventhandler.nanomsgevh.jcfg'
  'etc/janus/janus.eventhandler.rabbitmqevh.jcfg'
  'etc/janus/janus.eventhandler.sampleevh.jcfg'
  'etc/janus/janus.eventhandler.wsevh.jcfg'
  'etc/janus/janus.jcfg'
  'etc/janus/janus.logger.jsonlog.jcfg'
  'etc/janus/janus.plugin.audiobridge.jcfg'
  'etc/janus/janus.plugin.duktape.jcfg'
  'etc/janus/janus.plugin.echotest.jcfg'
  'etc/janus/janus.plugin.lua.jcfg'
  'etc/janus/janus.plugin.nosip.jcfg'
  'etc/janus/janus.plugin.recordplay.jcfg'
  'etc/janus/janus.plugin.sip.jcfg'
  'etc/janus/janus.plugin.streaming.jcfg'
  'etc/janus/janus.plugin.textroom.jcfg'
  'etc/janus/janus.plugin.videocall.jcfg'
  'etc/janus/janus.plugin.videoroom.jcfg'
  'etc/janus/janus.plugin.voicemail.jcfg'
  'etc/janus/janus.transport.http.jcfg'
  'etc/janus/janus.transport.mqtt.jcfg'
  'etc/janus/janus.transport.nanomsg.jcfg'
  'etc/janus/janus.transport.pfunix.jcfg'
  'etc/janus/janus.transport.rabbitmq.jcfg'
  'etc/janus/janus.transport.websockets.jcfg')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/meetecho/janus-gateway/archive/v${pkgver}.tar.gz"
  'janus.service'
  'janus.conf')
sha256sums=('63bc7a3e933c8c4e4c1cb1785fa1f43422eab63e01b4669c3d03bf6f962e2164'
            'cf2b6c8fdcd60ccfa179c4cd207a23ee7edfee90588c2c3847aa6cda418bed7f'
            'bd6d7615e722adb64816fae3c5323f6aeb1b9561c39f1652568ed494ffdaa191')

build() {
  cd "${pkgname}-${pkgver}"
  ./autogen.sh
  ./configure \
    --prefix /usr \
    --sysconfdir /etc \
    --disable-docs \
    --enable-json-logger \
    --enable-mqtt \
    --enable-plugin-duktape \
    --enable-plugin-lua \
    --enable-post-processing \
    --enable-rabbitmq
  make
}

package() {
  cd "${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install configs
  install -Dm644 -t "${pkgdir}/usr/lib/systemd/system/" "${srcdir}/janus.service"
  install -Dm644 -t "${pkgdir}/usr/lib/sysusers.d/" "${srcdir}/janus.conf"
}