blob: 8b66a974c1455bf8136b26c1532665bbd29d6d0f (
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
|
# Maintainer: Celogeek <arch-aur-f5d67e@celogeek.com>
_basename=jicofo
_tag=1117
_version=1.0.1117
pkgname=${_basename}
pkgver=${_version}
pkgrel=1
pkgdesc="JItsi Meet COnference FOcus"
arch=('any')
url="https://jitsi.org/jitsi-meet/"
license=('Apache')
depends=("java-runtime-openjdk=11" "bash")
optdepends=("prosody")
makedepends=(
"git"
"java-environment-openjdk=11"
"unzip" "maven"
)
options=('!strip')
backup=(
"etc/${pkgname}/config"
"etc/${pkgname}/logging.properties"
"etc/${pkgname}/jicofo.conf"
)
source=(
"$pkgname::git+https://github.com/jitsi/jicofo#tag=${_tag}"
"config"
"service"
"sysusers.conf"
"tmpfiles.conf"
)
install=install
build() {
cd "$pkgname"
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
export PATH=$JAVA_HOME/bin:$PATH
mvn -DskipTests -Dassembly.skipAssembly=true clean package install
mvn dependency:copy-dependencies -DincludeScope=runtime
}
package() {
cd "$srcdir/$pkgname"
DESTDIR="${pkgdir}/usr/lib/${pkgname}"
CONFDIR="${pkgdir}/etc/${pkgname}"
install -Dm644 -t "${DESTDIR}/lib" jicofo/target/dependency/*
install -Dm644 jicofo/target/jicofo*.jar "${DESTDIR}/jicofo.jar"
install -dm700 "${CONFDIR}"
install -Dm600 -t "${CONFDIR}" "lib/logging.properties"
install -Dm600 "jicofo-selector/src/main/resources/reference.conf" "${CONFDIR}/jicofo.conf"
install -Dm755 -t "${DESTDIR}" "resources/jicofo.sh"
sed -i 's@/var/log/jitsi@/var/log/'${pkgname}'@' "${CONFDIR}/logging.properties"
cd "$srcdir"
install -Dm600 -t "${CONFDIR}" "config"
install -Dm644 "service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -Dm644 "sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/$pkgname.conf"
install -Dm644 "tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/$pkgname.conf"
}
sha256sums=('2e4e74ebe9f15b249b9bfa7b9e9d0aa348da58a7c02055fcf7677a5740e9b9e2'
'b69f9485ba55b53fe6d1a8b5e4a37c542641cb205c6f5c0b2cf89d236cc6b562'
'902229d135e9b949da318f539cbe8f266bdd4e32e514f37d8782ad4562dc791b'
'0681e97ca1e06d8ea7bdec0a874c6fc7a6ea84628923005130cd444547a1b440'
'9f6fb4759099feefaee6fd44cac5854401e58f7ce929949cbc3994faaa3487d3')
|