blob: caad9b8b090a0f0e5c8640fc32a3ae4c4e60936c (
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
|
pkgdesc="ROS - Bindings between Numpy and Eigen using Boost.Python"
url='https://github.com/stack-of-tasks/eigenpy'
pkgname='ros-noetic-eigenpy'
pkgver='2.6.11'
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')
pkgrel=1
license=('BSD')
ros_makedepends=()
makedepends=(
'cmake'
'ros-build-tools'
${ros_makedepends[@]}
git
doxygen
)
ros_depends=()
depends=(
${ros_depends[@]}
python
python-numpy
eigen
boost
)
_dir="eigenpy-ros-release-upstream-${pkgver}"
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ipab-slmc/eigenpy_catkin-release/archive/upstream/${pkgver}.tar.gz")
sha256sums=('b7d1350e709cec41ca8804691000541496e8c2cd7c2b79ca60e9b63309ab111c')
build() {
# Use ROS environment variables
source /usr/share/ros-build-tools/clear-ros-env.sh
[ -f /opt/ros/noetic/setup.bash ] && source /opt/ros/noetic/setup.bash
# Create build directory
[ -d ${srcdir}/build ] || mkdir ${srcdir}/build
cd ${srcdir}/build
# Build project
cmake ${srcdir}/${_dir} \
-DCATKIN_BUILD_BINARY_PACKAGE=ON \
-DCMAKE_INSTALL_PREFIX=/opt/ros/noetic \
-DPYTHON_EXECUTABLE=/usr/bin/python \
-DSETUPTOOLS_DEB_LAYOUT=OFF
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}/" install
}
|