updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / resiprocate-svn / PKGBUILD
blobea4755ca54618226f7874c2646e6bfa8e8557154
1 pkgname=resiprocate-svn
2 pkgver=8628
3 pkgrel=1
4 pkgdesc="is dedicated to maintaining a complete, correct, and commercially usable implementation of SIP and a few related protocols"
5 arch=(i686 x86_64)
6 url="http://www.resiprocate.org"
7 license=('GPL')
8 depends=()
9 makedepends=()
10 optdepends=()
12 _svntrunk=https://svn.resiprocate.org/rep/resiprocate/main
13 _svnmod=resiprocate
15 build() {
16   cd "$srcdir"
18   if [ -d $_svnmod/.svn ]; then
19     (cd $_svnmod && svn up -r $pkgver)
20   else
21     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
22   fi
24   msg "SVN checkout done or server timeout"
25   msg "Starting make..."
27   rm -rf "$srcdir/$_svnmod-build"
28   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
29   cd "$srcdir/$_svnmod-build"
31   #
32   # BUILD
33   #
34 #  ./configure -y --with-compile-type=opt \
35 #       --enable-shared-libs \
36 #       --enable-ssl \
37 #       --disable-ipv6 \
38 #       --prefix=/usr --ares-prefix=/usr
39   make resiprocate || return 1
40   make DESTDIR=$pkgdir/ INSTALL_PREFIX=/usr install-rutil install-resip && \
41   make DESTDIR=$pkgdir/ ARES_PREFIX=/usr install-ares || return 1
43   mv $pkgdir/ares $pkgdir/usr/include/