Advertisement
Guest User

ros-melodic-rosbridge-library

a guest
Jun 26th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. # Script generated with import_catkin_packages.py
  2. # For more information: https://github.com/bchretien/arch-ros-stacks
  3. pkgdesc="ROS - The core rosbridge package, repsonsible for interpreting JSON andperforming the appropriate ROS action, like subscribe, publish, call service, and interact with params."
  4. url='http://ros.org/wiki/rosbridge_library'
  5.  
  6.  
  7. pkgname='ros-melodic-rosbridge-library'
  8. pkgver='0.11.1'
  9. _pkgver_patch=1
  10. arch=('any')
  11. pkgrel=1
  12. license=('BSD')
  13.  
  14. ros_makedepends=(ros-melodic-catkin)
  15. makedepends=('cmake' 'git' 'ros-build-tools-py3'
  16. ${ros_makedepends[@]})
  17.  
  18. ros_depends=(ros-melodic-rosservice
  19. ros-melodic-rosgraph
  20. ros-melodic-roscpp
  21. ros-melodic-geometry-msgs
  22. ros-melodic-std-msgs
  23. ros-melodic-message-runtime
  24. ros-melodic-rospy
  25. ros-melodic-rostopic)
  26. depends=(${ros_depends[@]}
  27. python-pillow
  28. python-pymongo)
  29.  
  30. _tag=release/melodic/rosbridge_library/${pkgver}-${_pkgver_patch}
  31. _dir=rosbridge_library
  32. source=("${_dir}"::"git+https://github.com/RobotWebTools-release/rosbridge_suite-release.git"#tag=${_tag})
  33. md5sums=('SKIP')
  34.  
  35. build() {
  36. # Use ROS environment variables
  37. source /usr/share/ros-build-tools/clear-ros-env.sh
  38. [ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/setup.bash
  39.  
  40. # Create build directory
  41. [ -d ${srcdir}/build ] || mkdir ${srcdir}/build
  42. cd ${srcdir}/build
  43.  
  44. # Fix Python2/Python3 conflicts
  45. /usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${srcdir}/${_dir}
  46.  
  47. # Build project
  48. cmake ${srcdir}/${_dir} \
  49. -DCMAKE_BUILD_TYPE=Release \
  50. -DCATKIN_BUILD_BINARY_PACKAGE=ON \
  51. -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
  52. -DPYTHON_EXECUTABLE=/usr/bin/python3 \
  53. -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \
  54. -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \
  55. -DPYTHON_BASENAME=.cpython-37m \
  56. -DSETUPTOOLS_DEB_LAYOUT=OFF
  57. make
  58. }
  59.  
  60. package() {
  61. cd "${srcdir}/build"
  62. make DESTDIR="${pkgdir}/" install
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement