updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / gnelib-svn / PKGBUILD
blob095dd886d7ccff921d96b737fb595f56950a6590
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 pkgname=gnelib-svn
4 pkgver=663
5 pkgrel=1
6 pkgdesc="A cross-platform, multithreaded, C++ networking library specifically designed for game networking."
7 arch=('i686' 'x86_64')
8 url="http://www.gillius.org/gne"
9 license=('LGPL')
10 depends=('hawknl' 'boost')
11 makedepends=('cmake')
12 provides=('gnelib')
13 conflicts=('gnelib')
14 source=()
15 md5sums=()
17 _svntrunk=https://gnelib.svn.sourceforge.net/svnroot/gnelib/trunk
18 _svnmod=gnelib
20 build() {
21   cd "${srcdir}"
23   if [ -d $_svnmod/.svn ]; then
24     (cd $_svnmod && svn up -r ${pkgver})
25   else
26     svn co $_svntrunk --config-dir ./ -r ${pkgver} $_svnmod
27   fi
29   msg "SVN checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "${srcdir}/$_svnmod-build"
33   cp -r "${srcdir}/$_svnmod" "${srcdir}/$_svnmod-build"
34   cd "${srcdir}/$_svnmod-build"
36   sed -i 's/usr\/local/usr/' CMakeLists.txt
37   cmake .
38   make || return 1
39   make DESTDIR="${pkgdir}/" install