summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimon Engelke2018-09-07 00:35:36 +0200
committerTimon Engelke2018-09-07 00:35:36 +0200
commita1461cb294ab010b2ed32e994dd3206fd0266297 (patch)
tree80a716750268ea1f72d749f9e7570f35d3fbce0e
downloadaur-a1461cb294ab010b2ed32e994dd3206fd0266297.tar.gz
Initial
-rw-r--r--.SRCINFO66
-rw-r--r--PKGBUILD119
2 files changed, 185 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..df60927c32c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,66 @@
+pkgbase = ros-melodic-moveit-core
+ pkgdesc = ROS - Core libraries used by MoveIt!.
+ pkgver = 0.10.1
+ pkgrel = 1
+ url = http://moveit.ros.org
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-eigen-stl-containers
+ makedepends = ros-melodic-octomap-msgs
+ makedepends = ros-melodic-trajectory-msgs
+ makedepends = ros-melodic-moveit-msgs
+ makedepends = ros-melodic-roslib
+ makedepends = ros-melodic-kdl-parser
+ makedepends = ros-melodic-geometry-msgs
+ makedepends = ros-melodic-urdf
+ makedepends = ros-melodic-random-numbers
+ makedepends = ros-melodic-rostime
+ makedepends = ros-melodic-srdfdom
+ makedepends = ros-melodic-octomap
+ makedepends = ros-melodic-visualization-msgs
+ makedepends = ros-melodic-sensor-msgs
+ makedepends = ros-melodic-geometric-shapes
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-eigen-conversions
+ makedepends = ros-melodic-std-msgs
+ makedepends = ros-melodic-shape-msgs
+ makedepends = ros-melodic-fcl
+ makedepends = ros-melodic-moveit-resources
+ makedepends = eigen
+ makedepends = urdfdom-headers
+ makedepends = assimp
+ makedepends = console-bridge
+ makedepends = boost
+ makedepends = urdfdom
+ makedepends = pkg-config
+ depends = ros-melodic-eigen-stl-containers
+ depends = ros-melodic-octomap-msgs
+ depends = ros-melodic-trajectory-msgs
+ depends = ros-melodic-moveit-msgs
+ depends = ros-melodic-std-msgs
+ depends = ros-melodic-kdl-parser
+ depends = ros-melodic-geometry-msgs
+ depends = ros-melodic-urdf
+ depends = ros-melodic-random-numbers
+ depends = ros-melodic-rostime
+ depends = ros-melodic-srdfdom
+ depends = ros-melodic-octomap
+ depends = ros-melodic-visualization-msgs
+ depends = ros-melodic-sensor-msgs
+ depends = ros-melodic-geometric-shapes
+ depends = ros-melodic-eigen-conversions
+ depends = ros-melodic-fcl
+ depends = ros-melodic-moveit-resources
+ depends = eigen
+ depends = urdfdom-headers
+ depends = assimp
+ depends = console-bridge
+ depends = boost
+ depends = urdfdom
+ source = ros-melodic-moveit-core-0.10.1-0.tar.gz::https://github.com/ros-gbp/moveit-release/archive/release/melodic/moveit_core/0.10.1-0.tar.gz
+ sha256sums = 3a1cdd01600b529c07f0b2b6c35ded8b5001af47eae1ebbf77a75ea2a94e53b2
+
+pkgname = ros-melodic-moveit-core
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..71ab7560c21
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,119 @@
+# Maintainer: Timon Engelke <aur@timonengelke.de>
+pkgdesc="ROS - Core libraries used by MoveIt!."
+url='http://moveit.ros.org'
+
+pkgname='ros-melodic-moveit-core'
+pkgver='0.10.1'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-melodic-eigen-stl-containers
+ ros-melodic-octomap-msgs
+ ros-melodic-trajectory-msgs
+ ros-melodic-moveit-msgs
+ ros-melodic-roslib
+ ros-melodic-kdl-parser
+ ros-melodic-geometry-msgs
+ ros-melodic-urdf
+ ros-melodic-random-numbers
+ ros-melodic-rostime
+ ros-melodic-srdfdom
+ ros-melodic-octomap
+ ros-melodic-visualization-msgs
+ ros-melodic-sensor-msgs
+ ros-melodic-geometric-shapes
+ ros-melodic-catkin
+ ros-melodic-eigen-conversions
+ ros-melodic-std-msgs
+ ros-melodic-shape-msgs
+ ros-melodic-fcl
+ ros-melodic-moveit-resources)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ eigen
+ urdfdom-headers
+ assimp
+ console-bridge
+ boost
+ urdfdom
+ pkg-config)
+
+ros_depends=(ros-melodic-eigen-stl-containers
+ ros-melodic-octomap-msgs
+ ros-melodic-trajectory-msgs
+ ros-melodic-moveit-msgs
+ ros-melodic-std-msgs
+ ros-melodic-kdl-parser
+ ros-melodic-geometry-msgs
+ ros-melodic-urdf
+ ros-melodic-random-numbers
+ ros-melodic-rostime
+ ros-melodic-srdfdom
+ ros-melodic-octomap
+ ros-melodic-visualization-msgs
+ ros-melodic-sensor-msgs
+ ros-melodic-geometric-shapes
+ ros-melodic-eigen-conversions
+ ros-melodic-fcl
+ ros-melodic-moveit-resources)
+depends=(${ros_depends[@]}
+ eigen
+ urdfdom-headers
+ assimp
+ console-bridge
+ boost
+ urdfdom)
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/moveit_core/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/moveit-release.git"#tag=${_tag})
+# sha256sums=('6178568b18b13a3570a8ae85c404227e1e3fbd57250b23d7d705795c2463be57')
+
+# Tarball version (faster download)
+_dir="moveit-release-release-melodic-moveit_core-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/moveit-release/archive/release/melodic/moveit_core/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('3a1cdd01600b529c07f0b2b6c35ded8b5001af47eae1ebbf77a75ea2a94e53b2')
+
+prepare() {
+ cd ${srcdir}
+ find . \( -iname *.cpp -o -iname *.h \) \
+ -exec sed -r -i "s/[^_]logError/CONSOLE_BRIDGE_logError/" {} \; \
+ -exec sed -r -i "s/[^_]logWarn/CONSOLE_BRIDGE_logWarn/" {} \; \
+ -exec sed -r -i "s/[^_]logDebug/CONSOLE_BRIDGE_logDebug/" {} \; \
+ -exec sed -r -i "s/[^_]logInform/CONSOLE_BRIDGE_logInform/" {} \;
+}
+
+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}
+
+ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/ros/melodic/lib64/pkgconfig
+
+ # 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
+}