summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiras Zaidan2017-08-10 18:28:38 +0200
committerFiras Zaidan2017-08-10 18:28:38 +0200
commita1cc39b1b6fbf49f2c517cc98276b62910da2f2c (patch)
tree23e6c867b82d6e17febe49c9ba358c565be27e97
downloadaur-a1cc39b1b6fbf49f2c517cc98276b62910da2f2c.tar.gz
Initial import
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD71
2 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5e2461920bc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = ros-kinetic-carrot-planner
+ pkgdesc = ROS - This planner attempts to find a legal place to put a carrot for the robot to follow.
+ pkgver = 1.14.1
+ pkgrel = 0
+ url = http://wiki.ros.org/carrot_planner
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-kinetic-nav-core
+ makedepends = ros-kinetic-roscpp
+ makedepends = ros-kinetic-base-local-planner
+ makedepends = ros-kinetic-costmap-2d
+ makedepends = ros-kinetic-catkin
+ makedepends = ros-kinetic-tf
+ makedepends = ros-kinetic-pluginlib
+ makedepends = eigen3
+ depends = ros-kinetic-nav-core
+ depends = ros-kinetic-roscpp
+ depends = ros-kinetic-base-local-planner
+ depends = ros-kinetic-costmap-2d
+ depends = ros-kinetic-tf
+ depends = ros-kinetic-pluginlib
+ depends = eigen3
+ source = ros-kinetic-carrot-planner-1.14.1-0.tar.gz::https://github.com/ros-gbp/navigation-release/archive/release/kinetic/carrot_planner.tar.gz
+ sha256sums = f387c834f9359d67f04df7e7b917fd616778691e0e2ca8a385416e07071c1ea3
+
+pkgname = ros-kinetic-carrot-planner
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f6c111945d0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+# Maintainer: Firas Zaidan <firas@zaidan.de>
+pkgdesc="ROS - This planner attempts to find a legal place to put a carrot for the robot to follow."
+url='http://wiki.ros.org/carrot_planner'
+
+pkgname='ros-kinetic-carrot-planner'
+pkgver='1.14.1'
+_pkgver_patch=0
+arch=('any')
+pkgrel=0
+license=('BSD')
+
+ros_makedepends=(ros-kinetic-nav-core
+ ros-kinetic-roscpp
+ ros-kinetic-base-local-planner
+ ros-kinetic-costmap-2d
+ ros-kinetic-catkin
+ ros-kinetic-tf
+ ros-kinetic-pluginlib)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ eigen3)
+
+ros_depends=(ros-kinetic-nav-core
+ ros-kinetic-roscpp
+ ros-kinetic-base-local-planner
+ ros-kinetic-costmap-2d
+ ros-kinetic-tf
+ ros-kinetic-pluginlib)
+depends=(${ros_depends[@]}
+ eigen3)
+
+# Git version (e.g. for debugging)
+# _tag=release/kinetic/carrot_planner/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/navigation-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="navigation-release-release-kinetic-carrot_planner"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/navigation-release/archive/release/kinetic/carrot_planner.tar.gz")
+sha256sums=('f387c834f9359d67f04df7e7b917fd616778691e0e2ca8a385416e07071c1ea3')
+
+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}/${_dir} \
+ -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
+}