blob: 285ec33ef7e35597358cb353fd8b08fb18940975 (
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
|
# Maintainer: C0rn3j <spleefer90@gmail.com>
# Contributor: Celogeek <private-4zokpdq6@mrhyde.xyz>
_basename=jitsi
_pkgname=videobridge
_version=2.3+187+gc7ef8e66
_url=https://download.jitsi.org/stable/jitsi-videobridge2_2.3-187-gc7ef8e66-1_all.deb
_pkgbase=${_basename}-${_pkgname}
_debname=${_basename}-${_pkgname}2
pkgname=${_pkgbase}-bin
pkgver=${_version}
pkgrel=1
pkgdesc="Jitsi Meet Videobridge binary"
arch=('any')
url="https://jitsi.org/jitsi-meet/"
license=('Apache')
depends=("java-runtime-openjdk=11" "bash")
optdepends=("prosody")
makedepends=('tar' 'unzip')
options=('!strip')
backup=(
"etc/${_pkgbase}/config"
"etc/${_pkgbase}/logging.properties"
"etc/${_pkgbase}/sip-communicator.properties"
"etc/${_pkgbase}/jvb.conf"
)
source=(
"$_url"
"config"
"sip-communicator.properties"
"service"
"sysusers.conf"
"tmpfiles.conf"
"jitsi.install"
)
provides=(${_pkgbase})
conflicts=(${_pkgbase})
install=jitsi.install
build() {
rm -rf ${_pkgbase}
mkdir ${_pkgbase}
tar xJf data.tar.xz -C ${_pkgbase}
}
package() {
cd "$srcdir/${_pkgbase}"
DESTDIR="${pkgdir}/usr/lib/${_pkgbase}"
CONFDIR="${pkgdir}/etc/${_pkgbase}"
install -dm755 "${DESTDIR}"
cp -R usr/share/jitsi-videobridge/* "${DESTDIR}"
rm "${DESTDIR}"/{collect-dump-logs.sh,graceful_shutdown.sh}
chown -R root:root "${DESTDIR}"
install -dm700 "${CONFDIR}"
install -Dm600 -t "${CONFDIR}" etc/jitsi/videobridge/*
install -Dm644 "etc/sysctl.d/20-jvb-udp-buffers.conf" "${pkgdir}/etc/sysctl.d/${_pkgbase}.conf"
cd "$srcdir"
unzip "$srcdir/${_pkgbase}/usr/share/jitsi-videobridge/jitsi-videobridge.jar" reference.conf
mv reference.conf jvb.conf
install -Dm600 -t "${CONFDIR}" "config" "sip-communicator.properties" "jvb.conf"
install -Dm644 "service" "${pkgdir}/usr/lib/systemd/system/${_pkgbase}.service"
install -Dm644 "sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/${_pkgbase}.conf"
install -Dm644 "tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/${_pkgbase}.conf"
}
sha256sums=('1318a16873d079286f2a09d928eb0f2530c54ea53d2a438732792717592c241e'
'5dbd9e1fec28d8b6eda3ed38b514322dc1386507e0a653c7a73061cdc41d9982'
'cc9fbf77497bce3c9673b2d144928f11cdd0c0823940c2b60c8369a2f086b9b7'
'e433c840c4cac5663ed169e90899efc1d1210649bf828bb412295902985f9ee5'
'998cbc64def56ab98080ff7150dd0913a5e10325cd2b038cf3db14baf8cb19fc'
'8a8f2fd5d02f196dff0ce7ceb75e45d19028a9f22dc9e55653ab17cce29051af'
'59c2b2068205d6972c4b25bf1bbed9aaf08ff395b28309888cfe9b386dc29fa0')
|