summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 436c5750981d47fa859f020e60fe08e701e11bc7 (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
# Maintainer: Guilhem Saurel <saurel@laas.fr>

_pkgname=hpp-pinocchio
_pkgver=4.0.1
_ros=ros-indigo
pkgname=${_pkgname}-git
pkgver=4.0.1.r177.338bb77
pkgrel=1
pkgdesc="Refactoring of hpp-model using the kinematic tree of pinocchio"
arch=('i686' 'x86_64')
url="https://github.com/humanoid-path-planner/$_pkgname"
license=('LGPL3')
depends=('boost' 'pinocchio' 'assimp' 'hpp-util-git' 'hpp-fcl' "$_ros-resource-retriever")
optdepends=('hpp-model' 'hpp-model-urdf' 'romeo_description' 'hpp_environments' 'doxygen')
makedepends=('cmake' 'git' 'ros-build-tools' "$_ros-catkin")
conflicts=($_pkgname)
provides=($_pkgname)
source=("$_pkgname"::"git://github.com/humanoid-path-planner/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    echo "$_pkgver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$_pkgname"
    git submodule update --init
    git checkout devel
}

build() {
    source /usr/share/ros-build-tools/clear-ros-env.sh
    source /opt/ros/indigo/setup.bash
    cd "$_pkgname"
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .
    make
}

package() {
    cd "$_pkgname"
    make DESTDIR="$pkgdir/" install
}