updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ortp-git / PKGBUILD
blob824cbf3793188449f43db752d42374806a0dc2d9
1 pkgname=ortp-git
2 pkgver=20101017
3 pkgrel=1
4 pkgdesc="oRTP is a LGPL licensed C library implementing the RTP protocol (rfc3550)"
5 arch=(i686 x86_64)
6 url="http://www.linphone.org/"
7 license=('LGPL2')
8 options=(!libtool)
9 depends=('openssl' 'libsrtp')
10 conflicts=('ortp')
11 provides=('ortp')
13 _gitroot="git://git.linphone.org/ortp.git"
14 _gitname="ortp"
16 build() {
17   cd $srcdir
18   msg "Connecting to GIT server...."
20   if [ -d $startdir/src/$_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf $srcdir/$_gitname-build
31   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
32   cd $srcdir/$_gitname-build
34   ./autogen.sh || return 1
35   ./configure --prefix=/usr || return 1
36   make || return 1
37   make DESTDIR=$pkgdir install || return 1