blob: 15c7e08ef6ec4fac4e54f8523bbf8376bfb90e24 (
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
|
# Maintainer : Benjamin Chretien <chretien at lirmm dot fr>
pkgname=rbdyn-git
_name=rbdyn
pkgver=r314.034b547
pkgrel=1
pkgdesc="A set of classes and functions to model the dynamics of rigid body systems."
arch=('i686' 'x86_64')
url="https://github.com/jorisv/RBDyn"
license=('GPLv3')
depends=('eigen3' 'python2' 'spacevecalg')
makedepends=('doxygen' 'cmake' 'git' 'pkg-config' 'boost' 'python2-pybindgen')
provides=('rbdyn')
source=("${_name}::git+https://github.com/jorisv/RBDyn")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_name}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build()
{
cd "${srcdir}/${_name}"
git submodule init
git submodule update
mkdir -p ${srcdir}/build && cd ${srcdir}/build
cmake "${srcdir}/${_name}" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_BUILD_TYPE="Release" \
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so
make
}
check()
{
cd ${srcdir}/build
make test
}
package()
{
cd ${srcdir}/build
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|