# Script generated with import_catkin_packages.py # For more information: https://github.com/bchretien/arch-ros-stacks pkgdesc="ROS - Lightweight tool for forwarding output from libraries to other logging systems." url='https://github.com/ros/console_bridge' pkgname='ros-indigo-console-bridge' pkgver='0.2.7' _pkgver_patch=0 arch=('any') pkgrel=1 license=('BSD') ros_makedepends=() makedepends=('cmake' 'git' 'ros-build-tools' ${ros_makedepends[@]} boost) ros_depends=(ros-indigo-catkin) depends=(${ros_depends[@]} boost) _tag=release/indigo/console_bridge/${pkgver}-${_pkgver_patch} _dir=console_bridge source=("${_dir}"::"git+https://github.com/ros-gbp/console_bridge-release.git"#tag=${_tag}) md5sums=('SKIP') build() { # Use ROS environment variables /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 3 ${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/python3 \ -DPYTHON_INCLUDE_DIR=/usr/include/python3.4m \ -DPYTHON_LIBRARY=/usr/lib/libpython3.4m.so \ -DSETUPTOOLS_DEB_LAYOUT=OFF make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}/" install }