updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / sip-communicator-svn / PKGBUILD
blobe4f576af5c22abed9e9bbe3ae400944917cf90c8
1 # Contributor: atommix aka Aleks Lifey <Aleks.Lifey@gmail.com>
3 pkgname=sip-communicator-svn
4 pkgver=4926
5 pkgrel=1
6 pkgdesc="the Java VoIP and Instant Messaging client"
7 arch=('i686' 'x86_64')
8 url="http://sip-communicator.org"
9 license=('GPL')
10 makedepends=('subversion' 'apache-ant' 'openjdk6')
11 depends=()
12 conflicts=()
13 provides=()
14 source=()                                                                                                   
15 md5sums=()
17 _svnmod=sip-communicator
18 _svntrunk=https://sip-communicator.dev.java.net/svn/sip-communicator/trunk/
20 build() {
22  cd $startdir/src
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..."
35  ant rebuild 
37  install -D \
38   $startdir/src/$_svnmod-build/resources/install/debian/sip-communicator.sh.tmpl \
39   $pkgdir/usr/bin/$_svnmod || return 1
41  install -Dd \
42   $startdir/src/$_svnmod-build/lib/bundle \
43   $pkgdir/usr/lib/$_svnmod/lib/bundle || return 1
45  install -D \
46   $startdir/src/$_svnmod-build/lib/bundle/*.* \
47   $pkgdir/usr/lib/$_svnmod/lib/bundle/ || return 1
49  install -D \
50   $startdir/src/$_svnmod-build/lib/*.* \
51   $pkgdir/usr/lib/$_svnmod/lib/ || return 1
53  install -Dd \
54   $startdir/src/$_svnmod-build/lib/native \
55   $pkgdir/usr/lib/$_svnmod/lib/native || return 1
57  if [[ `uname -m` = "x86_64" ]]; then
58   install -D \
59    $startdir/src/$_svnmod-build/lib/native/linux-64/*.* \
60    $pkgdir/usr/lib/$_svnmod/lib/native/
61  else
62   install -D \
63    $startdir/src/$_svnmod-build/lib/native/linux/*.* \
64    $pkgdir/usr/lib/$_svnmod/lib/native/
65  fi
67  install -Dd \
68   $startdir/src/$_svnmod-build/sc-bundles \
69   $pkgdir/usr/lib/$_svnmod/sc-bundles || return 1
71  install -D \
72   $startdir/src/$_svnmod-build/sc-bundles/*.* \
73   $pkgdir/usr/lib/$_svnmod/sc-bundles/ || return 1
75  install -D \
76   $startdir/src/$_svnmod-build/lib/os-specific/linux/jdic_stub.jar \
77   $pkgdir/usr/lib/$_svnmod/lib/ || return 1
79  install -D \
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