# Maintainer: Celogeek _basename=jicofo _tag=1057 _version=1.0.1057 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=('SKIP' 'b69f9485ba55b53fe6d1a8b5e4a37c542641cb205c6f5c0b2cf89d236cc6b562' '902229d135e9b949da318f539cbe8f266bdd4e32e514f37d8782ad4562dc791b' '0681e97ca1e06d8ea7bdec0a874c6fc7a6ea84628923005130cd444547a1b440' '9f6fb4759099feefaee6fd44cac5854401e58f7ce929949cbc3994faaa3487d3')