diff options
author | major | 2020-01-08 14:52:53 +0000 |
---|---|---|
committer | major | 2020-01-08 14:52:53 +0000 |
commit | 5bc2473ec382f7f8a05a367c7740a3a1d8df65d3 (patch) | |
tree | cd7129cfedf629ff31abeda9b9c08e3991b667f3 /PKGBUILD | |
download | aur-ros-melodic-mrpt-bridge.tar.gz |
initial commit with adjusted kinetic package (changes python2 to python3, kinetic to melodic)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79b79dcd6c04 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Script generated with import_catkin_packages.py +# For more information: https://github.com/bchretien/arch-ros-stacks +pkgdesc="ROS - MRPT - Bridge" +url='http://wiki.ros.org/mrpt_bridge' + +pkgname='ros-melodic-mrpt-bridge' +pkgver='0.1.25' +_pkgver_patch=0 +arch=('any') +pkgrel=0 +license=('BSD') + +ros_makedepends=('ros-melodic-catkin' 'ros-melodic-geometry-msgs' + 'ros-melodic-marker-msgs' + 'ros-melodic-message-generation' 'ros-melodic-message-runtime' + 'ros-melodic-mrpt-msgs' 'ros-melodic-nav-msgs' + 'ros-melodic-pcl-conversions' 'ros-melodic-roscpp' + 'ros-melodic-rospy' 'ros-melodic-sensor-msgs' 'ros-melodic-std-msgs' 'ros-melodic-tf') +makedepends=('cmake' 'git' 'ros-build-tools' 'mrpt' + ${ros_makedepends[@]}) + +ros_depends=() +depends=(${ros_depends[@]}) + +_tag=${pkgver} +_dir=mrpt_bridge +_commit=84099e91aaf344fb79c5bac3edb5f742b070343c +source=("${_dir}"::"git+https://github.com/mrpt-ros-pkg/mrpt_bridge"#commit=${_commit}) +md5sums=('SKIP') + +build() { + # Use ROS environment variables + source /usr/share/ros-build-tools/clear-ros-env.sh + [ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/setup.bash + + # Create build directory + [ -d ${srcdir}/build ] || mkdir ${srcdir}/build + cd ${srcdir}/build + + # Fix Python2/Python3 conflicts + /usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${srcdir}/${_dir} + + # Build project + cmake ${srcdir}/${_dir} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCATKIN_BUILD_BINARY_PACKAGE=ON \ + -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \ + -DPYTHON_EXECUTABLE=/usr/bin/python3 \ + -DPYTHON_INCLUDE_DIR=/usr/include/python3.8 \ + -DPYTHON_LIBRARY=/usr/lib/libpython3.8.so \ + -DPYTHON_BASENAME=-python3.8 \ + -DSETUPTOOLS_DEB_LAYOUT=OFF \ + -DCATKIN_ENABLE_TESTING=0 + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +} + + |