blob: 202c53119d9e75d31b4df04261ee3d15b8bf83cc (
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
|
pkgname=jigasi-git
pkgver=r492.31112b0
pkgrel=1
pkgdesc="Jitsi-meet SIP gateway"
arch=("x86_64")
url="https://github.com/jitsi/jigasi"
license=("Apache")
makedepends=("git" "maven")
optdepends=("jicofo"
"jitsi-videobridge"
"jitsi-meet")
backup=("etc/jitsi/jigasi/config"
"opt/jigasi/jigasi-home/sip-communicator.properties")
source=($pkgname::git+https://github.com/jitsi/jigasi)
sha256sums=("SKIP")
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
mvn package -DskipTests -Dassembly.skipAssembly=false
unzip -o target/jigasi-linux-x64-1.1-SNAPSHOT.zip
}
package() {
cd "${srcdir}/${pkgname}"
mkdir -p "${pkgdir}"/opt/
cp -R "${srcdir}"/jigasi-git/jigasi-linux-x64-1.1-SNAPSHOT/ "${pkgdir}"/opt/jigasi
install -Dm644 debian/jigasi.service "${pkgdir}"/usr/lib/systemd/system/jigasi.service
# complete config in wiki
mkdir -p "${pkgdir}"/etc/jitsi/jigasi
touch "${pkgdir}"/etc/jitsi/jigasi/config
}
|