mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-12-17 20:22:21 -05:00
add jitsi
This commit is contained in:
parent
db92daffa6
commit
5af0668a8b
44
src/jitsi/PKGBUILD
Normal file
44
src/jitsi/PKGBUILD
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
|
||||||
|
# Contributors: Keshav P R, atommix aka Aleks Lifey, Xavion, Ananda Samaddar, Dan Serban, Xyne
|
||||||
|
|
||||||
|
pkgname=jitsi
|
||||||
|
pkgver=2.10.5550
|
||||||
|
pkgrel=4
|
||||||
|
pkgdesc="An audio/video SIP VoIP phone and instant messenger written in Java (formerly SIP-Communicator)"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://jitsi.org"
|
||||||
|
license=('apache')
|
||||||
|
depends=('java-runtime')
|
||||||
|
makedepends=('apache-ant' 'java-environment-common')
|
||||||
|
options=(!strip !emptydirs zipman !libtool docs)
|
||||||
|
source=("https://download.jitsi.org/jitsi/src/jitsi-src-${pkgver}.zip"
|
||||||
|
jitsi.desktop
|
||||||
|
jitsi.sh)
|
||||||
|
sha256sums=('cdfc6f038d1b877c42d26dba1864ac7c6b554dd55c18767a29f2db3618647287'
|
||||||
|
'61e3bec3470790fa067f87d978016ec4452a6fd3dfba2c9afa5245b58d3cb19d'
|
||||||
|
'c47bfa98fe36378f2e7b947cd248582f5a90c1b169d53d158badb00439fdc6c7')
|
||||||
|
|
||||||
|
build()
|
||||||
|
{
|
||||||
|
cd "${srcdir}/${pkgname}"
|
||||||
|
# append the build revision to the jitsi version
|
||||||
|
sed -i "s/0\.build\.by\.SVN/build.${pkgver}/" src/net/java/sip/communicator/impl/version/NightlyBuildID.java
|
||||||
|
. /etc/profile.d/apache-ant.sh
|
||||||
|
ant rebuild
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${pkgname}"
|
||||||
|
find lib/ lib/bundle/ -maxdepth 1 -type f -exec install -Dm644 {} "${pkgdir}/usr/lib/${pkgname}/"{} \;
|
||||||
|
# find lib/os-specific/linux/ -maxdepth 1 -type f -execdir install -Dm644 {} "${pkgdir}/usr/lib/${pkgname}/lib/"{} \;
|
||||||
|
shopt -sq extglob
|
||||||
|
find lib/native/linux$(sed 's/_/-/g' <<<${CARCH/#*(i?86|x86)/})/ -maxdepth 1 -type f -execdir install -Dm644 {} "${pkgdir}/usr/lib/${pkgname}/lib/native/"{} \;
|
||||||
|
find sc-bundles/{,os-specific/linux/} -maxdepth 1 -type f -execdir install -Dm644 {} "${pkgdir}/usr/lib/${pkgname}/sc-bundles/"{} \;
|
||||||
|
install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
|
||||||
|
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
||||||
|
|
||||||
|
cd "resources/install/debian/"
|
||||||
|
for _file in *.{svg,xpm}; do
|
||||||
|
install -Dm644 "$_file" "${pkgdir}/usr/share/pixmaps/${_file}"
|
||||||
|
done
|
||||||
|
}
|
10
src/jitsi/jitsi.desktop
Normal file
10
src/jitsi/jitsi.desktop
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=Jitsi
|
||||||
|
GenericName=jitsi
|
||||||
|
Comment=VoIP and Instant Messaging client
|
||||||
|
Icon=/usr/share/pixmaps/jitsi.svg
|
||||||
|
Type=Application
|
||||||
|
Categories=Network
|
||||||
|
Exec=/usr/bin/jitsi
|
||||||
|
Terminal=false
|
23
src/jitsi/jitsi.sh
Normal file
23
src/jitsi/jitsi.sh
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CLIENTARGS=""
|
||||||
|
uname -m | grep i686 && CLIENTARGS="-client -Xmx256m"
|
||||||
|
|
||||||
|
if [[ -n ${JAVA_HOME} ]]; then
|
||||||
|
JAVABIN="${JAVA_HOME}/bin/java"
|
||||||
|
else
|
||||||
|
JAVABIN="java"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SCDIR=/usr/lib/jitsi
|
||||||
|
LIBPATH="${SCDIR}/lib"
|
||||||
|
CLASSPATH="${LIBPATH}/felix.jar:${SCDIR}/sc-bundles/sc-launcher.jar:${SCDIR}/sc-bundles/util.jar:${SCDIR}/sc-bundles/dnsjava.jar:${LIBPATH}"
|
||||||
|
FELIX_CONFIG="${LIBPATH}/felix.client.run.properties"
|
||||||
|
LOG_CONFIG="${LIBPATH}/logging.properties"
|
||||||
|
COMMAND="${JAVABIN} ${CLIENTARGS} -classpath ${CLASSPATH} -Djna.library.path=${LIBPATH}/native -Dfelix.config.properties=file:${FELIX_CONFIG} -Djava.util.logging.config.file=${LOG_CONFIG} net.java.sip.communicator.launcher.SIPCommunicator"
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LIBPATH}/native"
|
||||||
|
|
||||||
|
cd "${SCDIR}"
|
||||||
|
|
||||||
|
exec ${COMMAND} $*
|
Loading…
Reference in New Issue
Block a user