summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0e4d97f11978f54c94e4295b2dacff1132e28ca (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Maintainer: feighur
# Maintainer: robertfoster
# Contributor: Maurizio Porrato <maurizio.porrato@gmail.com>

pkgname=janus-gateway
pkgver=1.0.0
pkgrel=1
pkgdesc='An open source, general purpose, WebRTC server'
arch=(x86_64 i686)
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'
  'duktape: Javascript support'
  '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: MQTT support for the Janus API or events'
  'sofia-sip: SIP plugin'
)
makedepends=(
  'curl'
  'duktape'
  'ffmpeg'
  'gengetopt'
  'libogg'
  'librabbitmq-c'
  'libwebsockets'
  'lua'
  'nanomsg'
  'opus'
  'paho-mqtt-c'
  '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=('8b126f554c416767b2aa4c5fe957bfd3ba9326369cf05b312ceca96cd715c310'
            '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"
}