blob: fb717091a97f422c0a1e5b038095ff9f9b808f4b (
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
|
# Maintainer: Guilhem Saurel <guilhem.saurel@laas.fr>
_org='humanoid-path-planner'
_pkgname='hpp-fcl'
_pkgver=2.4.4
pkgname="$_pkgname-git"
pkgver=2.4.4.r3060.2282332
pkgrel=1
pkgdesc="An extension of the Flexible Collision Library"
arch=('i686' 'x86_64')
url="https://github.com/$_org/$_pkgname"
license=('BSD-2-Clause')
depends=('assimp' 'eigen' 'eigenpy' 'octomap' 'qhull' 'python-numpy' 'boost-libs' 'python' 'glibc' 'gcc-libs')
makedepends=('cmake' 'boost' 'git' 'doxygen')
conflicts=($_pkgname)
provides=($_pkgname)
source=("$_pkgname"::"git+$url.git")
sha256sums=('SKIP')
pkgver() {
echo "$_pkgver.r$(git -C "$_pkgname" rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
git -C "$_pkgname" checkout devel
git -C "$_pkgname" submodule update --init --recursive
}
build() {
cmake -B build -S $_pkgname \
-DHPP_FCL_HAS_QHULL=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGENERATE_PYTHON_STUBS=ON \
-DINSTALL_DOCUMENTATION=ON \
-DBUILD_DOCUMENTATION=ON \
-Wno-dev
cmake --build build
}
check() {
cmake --build build -t test
}
package() {
DESTDIR="$pkgdir/" cmake --build build -t install
sed -i 's=;/usr/\.\./include/include==' "$pkgdir/usr/lib/cmake/hpp-fcl/hpp-fclTargets.cmake"
sed -i '/Boost COMPONENTS/s/python3//' "$pkgdir/usr/lib/cmake/hpp-fcl/hpp-fclConfig.cmake"
install -Dm644 "$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|