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

_pkgname=pinocchio
_pkgver=1.2.4
pkgname=${_pkgname}-git
pkgver=$_pkgver.r1448.b927976
pkgrel=1
pkgdesc="Dynamic computations using Spatial Algebra. devel branch"
arch=('i686' 'x86_64')
url="https://stack-of-tasks.github.io/pinocchio/"
license=('LGPL3')
depends=('eigen32' 'eigenpy' 'hpp-fcl' 'urdfdom')
optdepends=('metapod-git' 'lua51')
makedepends=('cmake' 'git')
conflicts=('pinocchio')
provides=('pinocchio')
source=("$_pkgname"::"git://github.com/stack-of-tasks/$_pkgname.git")
md5sums=('SKIP')

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

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

build() {
    cd "$_pkgname"
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_CXX_FLAGS=-std=c++03 .
    make
}

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