summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormajor major2017-12-18 04:51:25 +0100
committermajor major2017-12-18 04:51:25 +0100
commit13bbb7f8f51a78cf7dfaf6ee7f8df94216149a64 (patch)
tree2e191d2d774609ccde1f520096111e5411bf9675
downloadaur-13bbb7f8f51a78cf7dfaf6ee7f8df94216149a64.tar.gz
added patch for FindG2O.cmake
-rw-r--r--.SRCINFO38
-rw-r--r--PKGBUILD81
2 files changed, 119 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f66d2848d1e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,38 @@
+pkgbase = ros-kinetic-teb-local-planner
+ pkgdesc = ROS - Teb local Planner provides a path planning algorithm for ROS
+ pkgver = 0.7.0
+ pkgrel = 1
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = pkg-config
+ makedepends = ros-kinetic-catkin
+ depends = ros-kinetic-roscpp
+ depends = ros-kinetic-base-local-planner
+ depends = ros-kinetic-nav-core
+ depends = ros-kinetic-pluginlib
+ depends = ros-kinetic-geometry-msgs
+ depends = ros-kinetic-nav-msgs
+ depends = ros-kinetic-message-generation
+ depends = ros-kinetic-catkin
+ depends = ros-kinetic-costmap-2d
+ depends = ros-kinetic-costmap-converter
+ depends = ros-kinetic-dynamic-reconfigure
+ depends = ros-kinetic-interactive-markers
+ depends = ros-kinetic-message-runtime
+ depends = g2o
+ depends = ros-kinetic-roscpp
+ depends = ros-kinetic-std-msgs
+ depends = ros-kinetic-tf
+ depends = ros-kinetic-tf-conversions
+ depends = ros-kinetic-visualization-msgs
+ depends = python2-rospkg
+ options = !makeflags
+ source = ros-kinetic-teb-local-planner::git+https://github.com/rst-tu-dortmund/teb_local_planner.git#tag=0.7.0
+ source = https://raw.githubusercontent.com/majorx234/FindG2O.cmake.patch/master/FindG2O.cmake.patch
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = ros-kinetic-teb-local-planner
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3664b4a4ce3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,81 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - Teb local Planner provides a path planning algorithm for ROS"
+
+pkgname='ros-kinetic-teb-local-planner'
+pkgver='0.7.0'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-kinetic-catkin)
+makedepends=('cmake' 'ros-build-tools' 'pkg-config' ${ros_makedepends[@]})
+
+ros_depends=(ros-kinetic-roscpp
+ros-kinetic-base-local-planner
+ros-kinetic-nav-core
+ros-kinetic-pluginlib
+ros-kinetic-geometry-msgs
+ros-kinetic-nav-msgs
+ros-kinetic-message-generation
+ros-kinetic-catkin
+ros-kinetic-costmap-2d
+ros-kinetic-costmap-converter
+ros-kinetic-dynamic-reconfigure
+ros-kinetic-interactive-markers
+ros-kinetic-message-runtime
+g2o
+ros-kinetic-roscpp
+ros-kinetic-std-msgs
+ros-kinetic-tf
+ros-kinetic-tf-conversions
+ros-kinetic-visualization-msgs)
+depends=(${ros_depends[@]}
+ python2-rospkg)
+
+# Git version (e.g. for debugging)
+_tag=${pkgver}
+_dir=${pkgname}
+source=("${_dir}"::"git+https://github.com/rst-tu-dortmund/teb_local_planner.git#tag=${_tag}"
+ "https://raw.githubusercontent.com/majorx234/FindG2O.cmake.patch/master/FindG2O.cmake.patch")
+sha256sums=('SKIP'
+ 'SKIP')
+options=('!makeflags')
+
+prepare() {
+ cd ${srcdir}/${_dir}
+
+ patch -Np1 < $srcdir/../FindG2O.cmake.patch
+}
+
+build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/kinetic/setup.bash ] && source /opt/ros/kinetic/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 2 ${srcdir}/${_dir}
+
+ # Build project
+ cmake ${srcdir}/${pkgname} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATKIN_BUILD_BINARY_PACKAGE=ON \
+ -DCMAKE_INSTALL_PREFIX=/opt/ros/kinetic \
+ -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+ -DPYTHON_BASENAME=-python2.7 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}
+