summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Reignier2015-08-28 00:41:38 +0200
committerRomain Reignier2015-08-28 00:41:38 +0200
commit2f126a63d9d463017bad6de1a56bf92cfa097b41 (patch)
tree8eba0ab9825c31037475d1d69f3f8ced12d64db7
downloadaur-2f126a63d9d463017bad6de1a56bf92cfa097b41.tar.gz
Initial commit
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD66
2 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6fbdee60f2e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = ros-indigo-kobuki-driver
+ pkgdesc = ROS - C++ driver library for Kobuki: Pure C++ driver library for Kobuki.
+ pkgver = 0.6.1
+ pkgrel = 1
+ url = http://ros.org/wiki/kobuki_driver
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = git
+ makedepends = ros-build-tools
+ makedepends = ros-indigo-ecl-mobile-robot
+ makedepends = ros-indigo-ecl-devices
+ makedepends = ros-indigo-ecl-converters
+ makedepends = ros-indigo-catkin
+ makedepends = ros-indigo-ecl-sigslots
+ makedepends = ros-indigo-ecl-time
+ makedepends = ros-indigo-ecl-geometry
+ makedepends = ros-indigo-ecl-command-line
+ depends = ros-indigo-ecl-mobile-robot
+ depends = ros-indigo-ecl-devices
+ depends = ros-indigo-ecl-converters
+ depends = ros-indigo-ecl-sigslots
+ depends = ros-indigo-ecl-time
+ depends = ros-indigo-ecl-geometry
+ depends = ros-indigo-ecl-command-line
+ source = kobuki_driver::git+https://github.com/yujinrobot-release/kobuki_core-release.git#tag=release/indigo/kobuki_driver/0.6.1-0
+ md5sums = SKIP
+
+pkgname = ros-indigo-kobuki-driver
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..59680aef181
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,66 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - C++ driver library for Kobuki: Pure C++ driver library for Kobuki."
+url='http://ros.org/wiki/kobuki_driver'
+
+pkgname='ros-indigo-kobuki-driver'
+pkgver='0.6.1'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-indigo-ecl-mobile-robot
+ ros-indigo-ecl-devices
+ ros-indigo-ecl-converters
+ ros-indigo-catkin
+ ros-indigo-ecl-sigslots
+ ros-indigo-ecl-time
+ ros-indigo-ecl-geometry
+ ros-indigo-ecl-command-line)
+makedepends=('cmake' 'git' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-indigo-ecl-mobile-robot
+ ros-indigo-ecl-devices
+ ros-indigo-ecl-converters
+ ros-indigo-ecl-sigslots
+ ros-indigo-ecl-time
+ ros-indigo-ecl-geometry
+ ros-indigo-ecl-command-line)
+depends=(${ros_depends[@]})
+
+_tag=release/indigo/kobuki_driver/${pkgver}-${_pkgver_patch}
+_dir=kobuki_driver
+source=("${_dir}"::"git+https://github.com/yujinrobot-release/kobuki_core-release.git"#tag=${_tag})
+md5sums=('SKIP')
+
+build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/indigo/setup.bash ] && source /opt/ros/indigo/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/indigo \
+ -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
+}