summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ee6bb91dbfaa2567a6edf118d64a2049a98c1f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Oskar Roesler <oskar@oskar-roesler.de>

pkgname=gazebo-10
pkgver=10.2.0
pkgrel=4
pkgdesc="A multi-robot simulator for outdoor environments"
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')
url="http://gazebosim.org/"
license=('Apache')
# See: http://www.gazebosim.org/tutorials?tut=install_from_source&cat=install
depends=('boost>=1.40.0' 'curl>=4.0' 'freeglut' 'freeimage>=3.0'
         'tbb>=3.0' 'libccd>=1.4' 'libltdl>=2.4.2' 'libtar>=1.2' 'libxml2>=2.7.7'
         'ogre-1.9' 'protobuf>=2.3.0' 'sdformat=6' 'ignition-math=4' 'ignition-transport=4'
         'ignition-cmake-0' 'ignition-common=1' 'ignition-fuel_tools=1' 'ignition-msgs=1' 'tinyxml2' 'qwt')
optdepends=('bullet: Bullet support'
            'cegui: Design custom graphical interfaces'
            'ffmpeg: Playback movies on textured surfaces'
            'gdal: Digital elevation terrains support'
            'libdart: DART support'
            'libspnav: space navigator joystick support'
            'libusb: USB peripherals support'
            'ruby-ronn: Generate manpages'
            'simbody: Simbody support'
            'urdfdom: Load URDF files')
makedepends=('cmake' 'doxygen')
provides=('gazebo')
conflicts=('gazebo')
install="gazebo.install"
source=("https://github.com/osrf/gazebo/archive/gazebo10_$pkgver.tar.gz"
        "fix-openal.patch::https://github.com/osrf/gazebo/commit/bef4dba1ef51a1d97cd7220b7d88916eaa8132a6.diff"
	"cmake-policy.patch")
sha256sums=('8fbba7008be004f6df93f279c26d03910b3b07768881a7e9b0df80b6db738552'
            '21c18f26d81f8dec37065ea273525c07880d2aeb0306fda47f6c11be594fe7da'
            'c8c122405a91013f960a7795784ae7332f333f09031bf83887053740ea35fbc9')

prepare() {
  cd "${srcdir}/gazebo-gazebo10_${pkgver}"
  patch --strip=1 --input=${srcdir}/fix-openal.patch
  patch --strip=1 --input=${srcdir}/cmake-policy.patch
}

build() {
  cd "${srcdir}/gazebo-gazebo10_${pkgver}"

  mkdir -p build && cd build

  # Note: we skip unit tests (else set to TRUE)
  cmake .. -DCMAKE_BUILD_TYPE="Release" \
           -DCMAKE_INSTALL_PREFIX="/usr" \
           -DCMAKE_INSTALL_LIBDIR="lib"
  make
}

package() {
  cd "${srcdir}/gazebo-gazebo10_${pkgver}/build"
  make DESTDIR="${pkgdir}" install
}