updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / talkmm-svn / PKGBUILD
blob2a804db2e640d69be6f734de104918abcb8df710
3 # Contributor: imagelife <lovelinux229@gmail.com>
4 pkgname=talkmm-svn
5 pkgver=107
6 pkgrel=1
7 pkgdesc="gtalk in linux base on libjingle."
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/talkmm/"
10 license=('GPL')
11 depends=('gtkmm' 'libsexymm' 'libglademm' 'ilbc' 'speex' 'linphone')
12 makedepends=('subversion')
13 provides=('talkmm')
14 conflicts=('talkmm')
15 source=()
16 md5sums=() 
18 _svntrunk=http://talkmm.googlecode.com/svn/trunk/
19 _svnmod=talkmm
21 build() {
22   cd "$srcdir"
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_svnmod-build"
34   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
36   #
37   # BUILD
38   #
40   #libjingle
41   cd "$srcdir/$_svnmod-build/libjingle"
42   ./configure
43   make
45   #talkmm
46   cd "$srcdir/$_svnmod-build/talkmm"
47   ln -fs "$srcdir/$_svnmod-build/libjingle/talk" "$srcdir/$_svnmod-build/talkmm/src" || return 1
48   ./autogen.sh
49   ./configure --prefix=/usr
50   make || return 1
51   make DESTDIR="$pkgdir/" install