summaryrefslogtreecommitdiff
path: root/~emulatorman/jitsi-stable
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-02-24 00:15:39 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-02-24 00:15:39 -0300
commit2050be76621e72c15b0e6547fa0b3e676319cf6c (patch)
tree75f8a4cd7df60691712fd1c4523220690de34ac4 /~emulatorman/jitsi-stable
parent8ce56f6ffc2826ca322adb4d0291152f9f5a69aa (diff)
parent42355452368e0a44d65d7a2d2128d21225d7ed2b (diff)
downloadabslibre-2050be76621e72c15b0e6547fa0b3e676319cf6c.tar.gz
abslibre-2050be76621e72c15b0e6547fa0b3e676319cf6c.tar.bz2
abslibre-2050be76621e72c15b0e6547fa0b3e676319cf6c.zip
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to '~emulatorman/jitsi-stable')
-rw-r--r--~emulatorman/jitsi-stable/PKGBUILD65
-rw-r--r--~emulatorman/jitsi-stable/jitsi.desktop9
-rw-r--r--~emulatorman/jitsi-stable/jitsi.sh19
3 files changed, 93 insertions, 0 deletions
diff --git a/~emulatorman/jitsi-stable/PKGBUILD b/~emulatorman/jitsi-stable/PKGBUILD
new file mode 100644
index 000000000..9cb7018a9
--- /dev/null
+++ b/~emulatorman/jitsi-stable/PKGBUILD
@@ -0,0 +1,65 @@
+# Contributor: Ananda Samaddar ananda@samaddar.co.uk
+# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
+# Contributor: atommix aka Aleks Lifey <Aleks.Lifey@gmail.com>
+# Contributor: Keshav P R <(skodabenz) (aatt) (rocketmail) (ddoott) (ccoomm)>
+# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy>
+
+_pkgname=jitsi
+pkgname=$_pkgname-stable
+pkgver=1.0.beta1.3820
+pkgrel=1
+pkgdesc="An audio/video/chat communicator that supports protocols such as SIP and XMPP/Jabber"
+arch=('i686' 'x86_64')
+url="http://jitsi.org"
+license=('LGPL')
+depends=('openjdk6')
+makedepends=('apache-ant' 'openjdk6')
+provides=("$_pkgname=$pkver")
+conflicts=("$_pkgname")
+options=(!strip !emptydirs zipman !libtool docs)
+source=("http://download.jitsi.org/jitsi/src/jitsi-src-1.0-beta1-nightly.build.${pkgver##*.}.zip"
+ $_pkgname.{desktop,sh})
+md5sums=('a5675da30e2e5fd801d2457ddddba0f9'
+ '5923eeca35823f8ef1e416a9a6fc0fac'
+ '55fe144bbf19283e7ec5d7bd3228cf5b')
+sha256sums=('74d845b993cdd53856415a179ac72bbe9c6f5db37482874eab7be34490e7c0c2'
+ '770132b617d94ed468e9592b991ceac10eb3e03e7198b8f5f2f05918f7db4302'
+ '98027ddaa1ebfe948fa49f6e57ab0d2c866d5e7c37873e30638b86223a2a15e9')
+
+# uncomment to get the latest stable release; you have to adjust/skip checksums
+#source[0]=http://download.jitsi.org/jitsi/src/$(curl -Ss 'http://download.jitsi.org/jitsi/src/' | grep -om1 'jitsi-src[^"<]\+.zip' | head -1)
+#pkgver=$(sed -r 's/[^0-9]*([0-9.]+)(-(beta[0-9]+))?.*(.build.([0-9]+))\..*/\1.\3.\5/' <<<${source[0]})
+
+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-stable/jitsi.desktop b/~emulatorman/jitsi-stable/jitsi.desktop
new file mode 100644
index 000000000..f0a7b5436
--- /dev/null
+++ b/~emulatorman/jitsi-stable/jitsi.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+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-stable/jitsi.sh b/~emulatorman/jitsi-stable/jitsi.sh
new file mode 100644
index 000000000..6ebd6131f
--- /dev/null
+++ b/~emulatorman/jitsi-stable/jitsi.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Additionnal JVM arguments
+CLIENTARGS=""
+[[ $(uname -m) =~ i?86 ]] && CLIENTARGS="-client -Xmx256m"
+
+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="$JAVA_HOME/bin/java $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"
+
+# set add LIBPATH to LD_LIBRARY_PATH for any sc natives (e.g. jmf .so's)
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBPATH/native
+
+cd $SCDIR
+
+exec $COMMAND $*