From cf3a72a9c64eb7a9e6d22cf89fe10bbd4d61b2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Chr=C3=A9tien?= Date: Sat, 7 Jun 2014 18:19:43 +0200 Subject: [PATCH] indigo: add robot. --- .SRCINFO | 16 ++++++++++++++++ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d6e6639f806d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ros-indigo-smach + pkgdesc = ROS - SMACH is a task-level architecture for rapidly creating complex robot behavior. + pkgver = 2.0.0 + pkgrel = 1 + url = http://www.ros.org/ + arch = any + license = BSD + makedepends = cmake + makedepends = git + makedepends = ros-build-tools + makedepends = ros-indigo-catkin + source = smach::git+https://github.com/ros-gbp/executive_smach-release.git#tag=release/indigo/smach/2.0.0-0 + md5sums = SKIP + +pkgname = ros-indigo-smach + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ffda43232ca5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Script generated with import_catkin_packages.py +# For more information: https://github.com/bchretien/arch-ros-stacks +pkgdesc="ROS - SMACH is a task-level architecture for rapidly creating complex robot behavior." +url='http://www.ros.org/' + +pkgname='ros-indigo-smach' +pkgver='2.0.0' +_pkgver_patch=0 +arch=('any') +pkgrel=1 +license=('BSD') + +ros_makedepends=(ros-indigo-catkin) +makedepends=('cmake' 'git' 'ros-build-tools' + ${ros_makedepends[@]}) + +ros_depends=() +depends=(${ros_depends[@]}) + +_tag=release/indigo/smach/${pkgver}-${_pkgver_patch} +_dir=smach +source=("${_dir}"::"git+https://github.com/ros-gbp/executive_smach-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 \ + -DSETUPTOOLS_DEB_LAYOUT=OFF + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +}