updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / vnsupport-svn / PKGBUILD
blob0fb3f6576a7b07b752fb62cf48a8e2b5f7f32cd4
1 # Maintainer: Jeffery MacEachern <j.maceachern@gmail.com>
3 pkgname=vnsupport-svn
4 pkgver=156
5 pkgrel=1
6 pkgdesc="A community supported library to communicate with products developed by VectorNav Technologies"
7 arch=('i686' 'x86_64')
8 url="http://vnsupport.sourceforge.net/"
9 license=('LGPL3')
10 depends=('glibc')
11 makedepends=('subversion' 'cmake>=2.8')
12 provides=(vnsupport)
13 conflicts=(vnsupport)
15 _svntrunk=https://vnsupport.svn.sourceforge.net/svnroot/vnsupport/trunk
16 _svnmod=vnsupport
18 build() {
19   cd "$srcdir"
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up -r $pkgver)
23   else
24     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   cd "$srcdir/$_svnmod/$_svnmod-build"
33   #
34   # BUILD
35   #
36   cmake ../src -DCMAKE_INSTALL_PREFIX=/usr
37   make || return 1
38   make DESTDIR="$pkgdir" install || return 1