updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / horde3d-svn / PKGBUILD
blobca4e007115230f5f4f5908c3c45b277469d7108c
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Lukas Kropatschek <lukas.krop@gmail.com>
4 pkgname=horde3d-svn
5 pkgver=198
6 pkgrel=1
7 pkgdesc="Horde3D Next-Generation Graphics Engine"
8 arch=('i686' 'x86_64')
9 url="http://www.horde3d.org"
10 license=("EPL")
11 depends=('glfw')
12 makedepends=('cmake')
13 conflicts=('horde3d')
14 provides=('horde3d')
15 source=()
16 md5sums=()
17 _svntrunk=http://horde3d.svn.sourceforge.net/svnroot/horde3d/trunk
18 _svnmod=trunk
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         svn export $_svnmod $_svnmod-build
33         cd $_svnmod-build
35   cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1
36   make || return 1
37   make DESTDIR=${pkgdir} install || return 1
39         mkdir -p ${pkgdir}/opt/Horde3D/Samples
40         cp -r Horde3D/Binaries/* ${pkgdir}/opt/Horde3D/Samples/
41         chmod -R 755 ${pkgdir}/opt/Horde3D/Samples/Linux/*
43 # vim:sw=2:ts=2