updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / blendelf-git / PKGBUILD
blob75f523b2bf00d87b45b13f14af24d1e719123f3d
1 # Maintainer: Tai Chi Minh Ralph Eastwood <tcmreastwod@gmail.com>
2 pkgname=blendelf-git
3 pkgver=20110206
4 pkgrel=1
5 pkgdesc="BlendELF is an open source 3d game engine"
6 arch=('i686' 'x86_64')
7 url="http://blendelf.com/index.html"
8 license=('ZLIB')
9 depends=('glfw' 'glew' 'freeimage' 'freetype2' 'openal' 'libvorbis' 'lua' 'bullet' 'enet' 'assimp-git')
10 makedepends=('git')
11 provides=('blendelf')
12 conflicts=('blendelf')
13 source=(compile.diff)
14 md5sums=('100818911d4715153399c3a1648bb0fe')
16 _gitroot="git://github.com/centralnoise/BlendELF.git"
17 _gitname="blendelf"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin master
25     msg "The local files are updated."
26   else
27     git clone -b master $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   patch -Np1 -i ../compile.diff
38   make
39   make shared
40   make static
42   install -Dm755 blendelfd "$pkgdir/usr/bin/blendelfd"
43   install -Dm755 blendelf "$pkgdir/usr/bin/blendelf"
44   install -Dm755 libblendelf.so "$pkgdir/usr/lib/libblendelf.so"
45   install -Dm644 csdk/blendelf.h "$pkgdir/usr/include/blendelf.h"
46   #install -Dm755 tools/blender25_pak_exporter_fast.py "$pkgdir/usr/share/blender/scripts/blender25_pak_exporter_fast.py"
47   install -Dm755 tools/blender_pak_exporter_fast.py "$pkgdir/usr/share/blender/scripts/blender_pak_exporter_fast.py"
48   install -Dm755 docs/api_doc.html "$pkgdir/usr/share/blendelf/docs/api_doc.html"
49   install -Dm755 docs/style.css "$pkgdir/usr/share/blendelf/docs/style.css"
50   install -Dm755 docs/images/topbanner.jpg "$pkgdir/usr/share/blendelf/docs/images/topbanner.jpg"
51
53 # vim:set ts=2 sw=2 et: