diff options
author | Benjamin Chrétien | 2015-06-20 19:58:24 +0900 |
---|---|---|
committer | Benjamin Chrétien | 2015-06-20 19:58:24 +0900 |
commit | be5f63d4e716bad66ccac84bbbce2a2e9d166604 (patch) | |
tree | 1b1ffed58b389eee71bbbe11766f10e2efe315cd /PKGBUILD | |
download | aur-ros-jade-pr2-description.tar.gz |
jade: add desktop and its dependencies
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f4abb89173ac --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Script generated with import_catkin_packages.py +# For more information: https://github.com/bchretien/arch-ros-stacks +pkgdesc="ROS - This package contains the description (mechanical, kinematic, visual, etc.) of the PR2 robot." +url='http://ros.org/wiki/pr2_description' + +pkgname='ros-jade-pr2-description' +pkgver='1.11.9' +_pkgver_patch=0 +arch=('any') +pkgrel=1 +license=('BSD') + +ros_makedepends=(ros-jade-ivcon + ros-jade-catkin + ros-jade-convex-decomposition) +makedepends=('cmake' 'git' 'ros-build-tools' + ${ros_makedepends[@]}) + +ros_depends=(ros-jade-xacro) +depends=(${ros_depends[@]}) + +_tag=release/jade/pr2_description/${pkgver}-${_pkgver_patch} +_dir=pr2_description +source=("${_dir}"::"git+https://github.com/pr2-gbp/pr2_common-release.git"#tag=${_tag}) +md5sums=('SKIP') + +build() { + # Use ROS environment variables + source /usr/share/ros-build-tools/clear-ros-env.sh + [ -f /opt/ros/jade/setup.bash ] && source /opt/ros/jade/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/jade \ + -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 +} |