updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / gazebo / PKGBUILD
blob4cca2b2582fe015f05d9631f7b7fbaba087dc0a7
1 # This is a PKGBUILD for Gazebo from the Player/Stage project
2 # Contributor: Vladimir Ermakov <vooon341@gmail.com>
3 pkgname=gazebo
4 pkgver=0.8pre3
5 _pkgver="0.8-pre3"
6 pkgrel=2
7 pkgdesc="Robotic systems environment"
8 arch=(i686 x86_64)
9 url="http://playerstage.sf.net"
10 license=('GPL')
11 depends=('fltk' 'ogre' 'ode' 'gdal' 'libxml2') # ogre: ogre-branch-1.4 (v1.4.9) in AUR
12 makedepends=('pkgconfig' 'scons')
13 provides=('gazebo')
14 source=(http://mesh.dl.sourceforge.net/sourceforge/playerstage/${pkgname}-${_pkgver}.tar.gz
15         patch.diff)
16 md5sums=('3e0c4fa87b28ad396d5d5074884724b3'
17          'c0ac1f4beac967f58d63f099c79f932f')
19 build() {
20   cd "$startdir/src/$pkgname-$_pkgver"
22   patch -p0 < ../patch.diff
24   #scons prefix=/usr destdir="$startdir/pkg" || return 1
25   scons prefix=/usr destdir="$startdir/pkg" install || return 1
27   # workaraund "scons: *** [install] /usr/share/gazebo/Media: Is a directory"
28   mkdir "$startdir/pkg/usr/share"
29   mkdir "$startdir/pkg/usr/share/$pkgname"
30   cp -R ./Media "$startdir/pkg/usr/share/$pkgname"
31   cp -R ./worlds "$startdir/pkg/usr/share/$pkgname"
34 # vim:set ts=2 sw=2 et: