summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimon Engelke2018-09-07 00:35:40 +0200
committerTimon Engelke2018-09-07 00:35:40 +0200
commit001871e37fac1ecaffb0a4f339618f50f27166b6 (patch)
tree63413427ddc2e3303bcf117bbd0e84894d0b7ea6
downloadaur-001871e37fac1ecaffb0a4f339618f50f27166b6.tar.gz
Initial
-rw-r--r--.SRCINFO39
-rw-r--r--PKGBUILD85
2 files changed, 124 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f3448fc5cbe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,39 @@
+pkgbase = ros-melodic-moveit-ros-visualization
+ pkgdesc = ROS - Components of MoveIt that offer visualization.
+ pkgver = 0.10.1
+ pkgrel = 1
+ url = http://moveit.ros.org
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-object-recognition-msgs
+ makedepends = ros-melodic-pluginlib
+ makedepends = ros-melodic-moveit-ros-warehouse
+ makedepends = ros-melodic-interactive-markers
+ makedepends = ros-melodic-rospy
+ makedepends = ros-melodic-roscpp
+ makedepends = ros-melodic-moveit-ros-planning-interface
+ makedepends = ros-melodic-rviz
+ makedepends = ros-melodic-moveit-ros-robot-interaction
+ makedepends = ros-melodic-geometric-shapes
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-moveit-ros-perception
+ makedepends = eigen3
+ makedepends = pkg-config
+ depends = ros-melodic-object-recognition-msgs
+ depends = ros-melodic-pluginlib
+ depends = ros-melodic-moveit-ros-warehouse
+ depends = ros-melodic-interactive-markers
+ depends = ros-melodic-rospy
+ depends = ros-melodic-roscpp
+ depends = ros-melodic-moveit-ros-planning-interface
+ depends = ros-melodic-rviz
+ depends = ros-melodic-moveit-ros-robot-interaction
+ depends = ros-melodic-geometric-shapes
+ depends = ros-melodic-moveit-ros-perception
+ source = ros-melodic-moveit-ros-visualization-0.10.1-0.tar.gz::https://github.com/ros-gbp/moveit-release/archive/release/melodic/moveit_ros_visualization/0.10.1-0.tar.gz
+ sha256sums = 9fefa1bb916edae702a0ad6e4b73b5849d288daf3db2c8abac6e65a8dc0b3aae
+
+pkgname = ros-melodic-moveit-ros-visualization
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c6a49c6e9f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,85 @@
+# Maintainer: Timon Engelke <aur@timonengelke.de>
+pkgdesc="ROS - Components of MoveIt that offer visualization."
+url='http://moveit.ros.org'
+
+pkgname='ros-melodic-moveit-ros-visualization'
+pkgver='0.10.1'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-melodic-object-recognition-msgs
+ ros-melodic-pluginlib
+ ros-melodic-moveit-ros-warehouse
+ ros-melodic-interactive-markers
+ ros-melodic-rospy
+ ros-melodic-roscpp
+ ros-melodic-moveit-ros-planning-interface
+ ros-melodic-rviz
+ ros-melodic-moveit-ros-robot-interaction
+ ros-melodic-geometric-shapes
+ ros-melodic-catkin
+ ros-melodic-moveit-ros-perception)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ eigen3
+ pkg-config)
+
+ros_depends=(ros-melodic-object-recognition-msgs
+ ros-melodic-pluginlib
+ ros-melodic-moveit-ros-warehouse
+ ros-melodic-interactive-markers
+ ros-melodic-rospy
+ ros-melodic-roscpp
+ ros-melodic-moveit-ros-planning-interface
+ ros-melodic-rviz
+ ros-melodic-moveit-ros-robot-interaction
+ ros-melodic-geometric-shapes
+ ros-melodic-moveit-ros-perception)
+depends=(${ros_depends[@]})
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/moveit_ros_visualization/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/moveit-release.git"#tag=${_tag})
+# sha256sums=('648a7419c00fa9e0d6575e1d7afa381dfe33cdcfe83348a8145c23801ecb80dd')
+
+# Tarball version (faster download)
+_dir="moveit-release-release-melodic-moveit_ros_visualization-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/moveit-release/archive/release/melodic/moveit_ros_visualization/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('9fefa1bb916edae702a0ad6e4b73b5849d288daf3db2c8abac6e65a8dc0b3aae')
+
+prepare() {
+ sed -i "/#include <moveit\/macros\/class_forward.h/i#include <boost\/thread\/mutex.hpp>" ${srcdir}/${_dir}/rviz_plugin_render_tools/include/moveit/rviz_plugin_render_tools/trajectory_visualization.h
+}
+
+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.7m \
+ -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \
+ -DPYTHON_BASENAME=-python3.7m \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}