updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / linphone-git / PKGBUILD
blobf885a06ccd15b525aa0f63d8ac428067a2444f89
1 pkgname=linphone-git
2 pkgver=20111024
3 pkgrel=2
4 pkgdesc="Linphone is an internet phone or Voice Over IP phone (VoIP)."
5 arch=(i686 x86_64)
6 url="http://www.linphone.org/"
7 license=('GPL2')
8 depends=('gtk2' 'mediastreamer-git' 'libexosip2')
9 makedepends=('git')
10 options=(!libtool)
11 conflicts=('linphone')
12 provides=('linphone')
14 _gitroot="git://git.linphone.org/linphone.git"
15 _gitname="linphone"
17 build() {
18   cd $srcdir
19   msg "Connecting to GIT server...."
21   if [ -d $startdir/src/$_gitname ] ; then
22     cd $_gitname && git config remote.origin.url $_gitroot && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf $srcdir/$_gitname-build
32   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
33   cd $srcdir/$_gitname-build
35   # autogen.sh does not check if they exists or not...
36   mkdir -p oRTP mediastreamer2
37   touch oRTP/autogen.sh mediastreamer2/autogen.sh
38   chmod +x oRTP/autogen.sh mediastreamer2/autogen.sh
40   ./autogen.sh
41   ./configure --prefix=/usr --enable-external-ortp --enable-external-mediastreamer
42   make
45 package() {
46   cd $srcdir/$_gitname-build
47   make DESTDIR=$pkgdir install