summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormajor major2017-04-03 20:24:30 +0200
committermajor major2017-04-03 20:24:30 +0200
commitb2989b8f2f85d4b4b9408faa54a6f8d797ae7fea (patch)
tree7b6a0191796f52b6d028b27954473622e3f9cb1e
downloadaur-b2989b8f2f85d4b4b9408faa54a6f8d797ae7fea.tar.gz
ROS msgs for linefollowerplugin for ROS Stage
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD57
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b9979983671
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = ros-kinetic-linefollower-msgs
+ pkgdesc = ROS - linefollower_msgs provides messages for linefollower plugin in stage
+ pkgver = 0.1.0
+ pkgrel = 0
+ arch = any
+ license = GPLv2
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-kinetic-message-generation
+ makedepends = ros-kinetic-catkin
+ makedepends = ros-kinetic-std-msgs
+ makedepends = ros-kinetic-geometry-msgs
+ depends = ros-kinetic-message-runtime
+ depends = ros-kinetic-std-msgs
+ depends = ros-kinetic-geometry-msgs
+ source = ros-kinetic-linefollower-msgs::git+https://github.com/majorx234/linefollower_msgs.git
+ sha256sums = SKIP
+
+pkgname = ros-kinetic-linefollower-msgs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..79358fa28a7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - linefollower_msgs provides messages for linefollower plugin in stage"
+
+pkgname='ros-kinetic-linefollower-msgs'
+pkgver='0.1.0'
+_pkgver_patch=0
+arch=('any')
+pkgrel=0
+license=('GPLv2')
+
+ros_makedepends=(ros-kinetic-message-generation
+ ros-kinetic-catkin
+ ros-kinetic-std-msgs
+ ros-kinetic-geometry-msgs)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-kinetic-message-runtime
+ ros-kinetic-std-msgs
+ ros-kinetic-geometry-msgs)
+depends=(${ros_depends[@]})
+
+# Git version (e.g. for debugging)
+_dir=${pkgname}
+source=("${_dir}"::"git+https://github.com/majorx234/linefollower_msgs.git")
+sha256sums=('SKIP')
+
+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
+} \ No newline at end of file