diff options
author | Benjamin Chrétien | 2014-06-07 17:44:52 +0200 |
---|---|---|
committer | Benjamin Chrétien | 2014-06-07 17:44:52 +0200 |
commit | 40e741afb2ad50d3148aa8733c7c2c2b58482d5c (patch) | |
tree | fc6f99599abc2ab404fc96e63df7553d86ee02fb | |
download | aur-40e741afb2ad50d3148aa8733c7c2c2b58482d5c.tar.gz |
indigo: add ros_base.
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 62 |
2 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..705e3c21e7ff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = ros-indigo-pluginlib + pkgdesc = ROS - The pluginlib package provides tools for writing and dynamically loading plugins using the ROS build infrastructure. + pkgver = 1.10.0 + pkgrel = 2 + url = http://www.ros.org/wiki/pluginlib + arch = any + license = BSD, Boost Software License + makedepends = cmake + makedepends = git + makedepends = ros-build-tools + makedepends = ros-indigo-roslib + makedepends = ros-indigo-cmake-modules + makedepends = ros-indigo-rosconsole + makedepends = ros-indigo-catkin + makedepends = ros-indigo-class-loader + makedepends = boost + makedepends = tinyxml + depends = ros-indigo-roslib + depends = ros-indigo-rosconsole + depends = ros-indigo-class-loader + depends = boost + depends = tinyxml + source = pluginlib::git+https://github.com/ros-gbp/pluginlib-release.git#tag=release/indigo/pluginlib/1.10.0-1 + md5sums = SKIP + +pkgname = ros-indigo-pluginlib + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..37cd9fa3f2bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Script generated with import_catkin_packages.py +# For more information: https://github.com/bchretien/arch-ros-stacks +pkgdesc="ROS - The pluginlib package provides tools for writing and dynamically loading plugins using the ROS build infrastructure." +url='http://www.ros.org/wiki/pluginlib' + +pkgname='ros-indigo-pluginlib' +pkgver='1.10.0' +_pkgver_patch=1 +arch=('any') +pkgrel=2 +license=('BSD, Boost Software License') + +ros_makedepends=(ros-indigo-roslib + ros-indigo-cmake-modules + ros-indigo-rosconsole + ros-indigo-catkin + ros-indigo-class-loader) +makedepends=('cmake' 'git' 'ros-build-tools' + ${ros_makedepends[@]} + boost + tinyxml) + +ros_depends=(ros-indigo-roslib + ros-indigo-rosconsole + ros-indigo-class-loader) +depends=(${ros_depends[@]} + boost + tinyxml) + +_tag=release/indigo/pluginlib/${pkgver}-${_pkgver_patch} +_dir=pluginlib +source=("${_dir}"::"git+https://github.com/ros-gbp/pluginlib-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 +} |