1 # Contributor: atommix aka Aleks Lifey <Aleks.Lifey@gmail.com>
3 pkgname=sip-communicator-svn
6 pkgdesc="the Java VoIP and Instant Messaging client"
8 url="http://sip-communicator.org"
10 makedepends=('subversion' 'apache-ant' 'openjdk6')
17 _svnmod=sip-communicator
18 _svntrunk=https://sip-communicator.dev.java.net/svn/sip-communicator/trunk/
23 rm -rf $startdir/src/$_svnmod-build
25 msg "Getting sources from SVN ..."
27 svn co $_svntrunk $_svnmod --username guest --password "" || return 1
29 cp -rf $startdir/src/$_svnmod $startdir/src/$_svnmod-build
30 cd $startdir/src/$_svnmod-build
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
38 $startdir/src/$_svnmod-build/resources/install/debian/sip-communicator.sh.tmpl \
39 $pkgdir/usr/bin/$_svnmod || return 1
42 $startdir/src/$_svnmod-build/lib/bundle \
43 $pkgdir/usr/lib/$_svnmod/lib/bundle || return 1
46 $startdir/src/$_svnmod-build/lib/bundle/*.* \
47 $pkgdir/usr/lib/$_svnmod/lib/bundle/ || return 1
50 $startdir/src/$_svnmod-build/lib/*.* \
51 $pkgdir/usr/lib/$_svnmod/lib/ || return 1
54 $startdir/src/$_svnmod-build/lib/native \
55 $pkgdir/usr/lib/$_svnmod/lib/native || return 1
57 if [[ `uname -m` = "x86_64" ]]; then
59 $startdir/src/$_svnmod-build/lib/native/linux-64/*.* \
60 $pkgdir/usr/lib/$_svnmod/lib/native/
63 $startdir/src/$_svnmod-build/lib/native/linux/*.* \
64 $pkgdir/usr/lib/$_svnmod/lib/native/
68 $startdir/src/$_svnmod-build/sc-bundles \
69 $pkgdir/usr/lib/$_svnmod/sc-bundles || return 1
72 $startdir/src/$_svnmod-build/sc-bundles/*.* \
73 $pkgdir/usr/lib/$_svnmod/sc-bundles/ || return 1
76 $startdir/src/$_svnmod-build/lib/os-specific/linux/jdic_stub.jar \
77 $pkgdir/usr/lib/$_svnmod/lib/ || return 1
80 $startdir/src/$_svnmod-build/sc-bundles/os-specific/linux/media.jar \
81 $pkgdir/usr/lib/$_svnmod/sc-bundles/ || return 1
83 mkdir -p $pkgdir/usr/share/pixmaps
84 cp $startdir/src/$_svnmod-build/resources/install/debian/$_svnmod.svg \
85 $pkgdir/usr/share/pixmaps/$_svnmod.svg
87 cp $startdir/src/$_svnmod-build/resources/install/debian/$_svnmod-16.xpm \
88 $pkgdir/usr/share/pixmaps/$_svnmod-16.xpm
90 cp $startdir/src/$_svnmod-build/resources/install/debian/$_svnmod-32.xpm \
91 $pkgdir/usr/share/pixmaps/$_svnmod-32.svg
93 mkdir -p $pkgdir/usr/share/applications
94 cp $startdir/src/$_svnmod-build/resources/install/debian/$_svnmod.desktop \
95 $pkgdir/usr/share/applications/
97 rm -rf $startdir/src/$_svnmod-build