diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-04-21 11:42:33 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-04-21 11:42:33 -0300 |
commit | 62e9c4ca38e5ab3b2eea5289d4f41eb75876fdb7 (patch) | |
tree | 9ed048f7a5371c902add873e6021a1e69af530dc /~emulatorman | |
parent | e8c14872ec42e3c16557f3b7bcad520fdecaf43e (diff) | |
download | abslibre-62e9c4ca38e5ab3b2eea5289d4f41eb75876fdb7.tar.gz abslibre-62e9c4ca38e5ab3b2eea5289d4f41eb75876fdb7.tar.bz2 abslibre-62e9c4ca38e5ab3b2eea5289d4f41eb75876fdb7.zip |
jitsi-1.0.3967-1: new package for emulatorman repo
Diffstat (limited to '~emulatorman')
-rw-r--r-- | ~emulatorman/jitsi/PKGBUILD | 48 | ||||
-rw-r--r-- | ~emulatorman/jitsi/jitsi.desktop | 10 | ||||
-rw-r--r-- | ~emulatorman/jitsi/jitsi.sh | 20 |
3 files changed, 78 insertions, 0 deletions
diff --git a/~emulatorman/jitsi/PKGBUILD b/~emulatorman/jitsi/PKGBUILD new file mode 100644 index 000000000..5d8a2e4cb --- /dev/null +++ b/~emulatorman/jitsi/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be> +# Contributors: Keshav P R, atommix aka Aleks Lifey, Xavion, Ananda Samaddar, Dan Serban +# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy> + +pkgname=jitsi +pkgver=1.0.3967 +pkgrel=1 +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=('LGPL') +depends=('java-runtime') +makedepends=('apache-ant' 'java-environment') +options=(!strip !emptydirs zipman !libtool docs) +source=("http://download.jitsi.org/jitsi/src/jitsi-src-1.0-build.${pkgver##*.}.zip" + jitsi.desktop + jitsi.sh) +md5sums=('0fb7aaaad551177c3037ae570ca2f2e1' + 'aad7cf1fb18ff5d7c964834ecc38aed8' + 'c75c74f41e613a7d17bf2f1f310adee3') + +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" + local _file + for _file in resources/install/debian/*.{svg,xpm}; do + install -Dm644 "$_file" "${pkgdir}/usr/share/pixmaps/${pkgname}${_file/*sip-communicator/}" + done +} diff --git a/~emulatorman/jitsi/jitsi.desktop b/~emulatorman/jitsi/jitsi.desktop new file mode 100644 index 000000000..dd4de82a6 --- /dev/null +++ b/~emulatorman/jitsi/jitsi.desktop @@ -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 diff --git a/~emulatorman/jitsi/jitsi.sh b/~emulatorman/jitsi/jitsi.sh new file mode 100644 index 000000000..c78c69f2f --- /dev/null +++ b/~emulatorman/jitsi/jitsi.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +CLIENTARGS="" +arch | grep i686 && CLIENTARGS="-client -Xmx256m" + +javabin=${JAVA_HOME}/bin/java + +SCDIR=/usr/lib/jitsi +LIBPATH=$SCDIR/lib +CLASSPATH=$LIBPATH/jdic_stub.jar:$LIBPATH/jdic-all.jar:$LIBPATH/felix.jar:$LIBPATH/bcprovider.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar +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 $* + |