summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b62fc4d31ead0389007e42779a689b5e18a13213 (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
# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>

pkgname=openhrp3
pkgver=3.1.8
pkgrel=1
pkgdesc="Open Architecture Human-centered Robotics Platform"
arch=('i686' 'x86_64')
url="https://github.com/fkanehiro/openhrp3"
license=('EPL')
# FIXME: probably tons of dependencies missing
depends=('omniorb' 'lapack' 'f2c' 'boost' 'eigen3'
         'collada-dom' 'openrtm-aist' 'uuid')
optdepends=()
makedepends=('cmake' 'doxygen' 'graphviz' 'python2-yaml')
source=("https://github.com/fkanehiro/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('100dd486e8a3504c242835fc44f2e6830c78360623b98f981b9d2667949ffccf')

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

  # Create build directory
  mkdir -p build && cd build

  # Run CMake
  cmake .. -DCMAKE_BUILD_TYPE="Release" \
           -DCMAKE_INSTALL_PREFIX="/usr" \
           -DCMAKE_INSTALL_LIBDIR="lib"

  # Compile
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/build"

  # Install Gazebo
  make DESTDIR="${pkgdir}" install
}

# vim:set ts=2 sw=2 et: