updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / morse-git / PKGBUILD
blobd7d5d9aed4a06ba31f1908cab02bf6d557904ed5
1 pkgname=morse-git
2 pkgver=20101125
3 pkgrel=1
4 pkgdesc="A versatile simulator for generic mobile robots simulation based on Blender"
5 arch=('i686' 'x86_64')
6 url="http://morse.openrobots.org/"
7 license=('custom')
8 depends=('blender-beta' 'python' 'python-yarp')
9 provides=('morse')
10 makedepends=('git' 'cmake')
12 _gitroot="git://github.com/laas/morse.git"
13 _gitname="morse"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22     cd ../
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   msg "Start making..."
32   rm -fr build
33   mkdir build
34   cd build
36   cmake ../$_gitname -DCMAKE_BUILD_TYPE=Release -DBUILD_YARP2_SUPPORT=ON -DCMAKE_INSTALL_PREFIX=/usr
37   make
40 package() {
41   cd "$srcdir/build"
43   make DESTDIR="$pkgdir/" install
45   install -d "${pkgdir}/usr/share/morse"
47   #mv "${pkgdir}/usr/bin/morse" "${pkgdir}/usr/bin/morse2"
48   #echo "#!/bin/bash" > "${pkgdir}/usr/bin/morse"
49   #echo "export PYTHONPATH=\$PYTHONPATH:/usr/lib/python3.1/site-packages/morse/blender" >> "${pkgdir}/usr/bin/morse"
50   #echo "exec morse2" >> "${pkgdir}/usr/bin/morse"
51   #chmod +x "${pkgdir}/usr/bin/morse"
53   install -d "${pkgdir}/usr/share/licenses/$pkgname"
54   install -m644 ../$_gitname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/"