Advertisement
Guest User

ros-melodic-rosauth

a guest
Jun 26th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 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 - Server Side tools for Authorization and Authentication of ROS Clients."
  4. url='http://ros.org/wiki/rosauth'
  5.  
  6. pkgname='ros-melodic-rosauth'
  7. pkgver='0.1.7'
  8. _pkgver_patch=2
  9. arch=('any')
  10. pkgrel=1
  11. license=('BSD')
  12.  
  13. ros_makedepends=(ros-melodic-message-generation
  14. ros-melodic-rostest
  15. ros-melodic-roscpp
  16. ros-melodic-catkin)
  17. makedepends=('cmake' 'git' 'ros-build-tools'
  18. ${ros_makedepends[@]}
  19. openssl)
  20.  
  21. ros_depends=(ros-melodic-message-runtime
  22. ros-melodic-roscpp)
  23. depends=(${ros_depends[@]})
  24.  
  25. _tag=release/melodic/rosauth/${pkgver}-${_pkgver_patch}
  26. _dir=rosauth
  27. source=("${_dir}"::"git+https://github.com/wpi-rail-release/rosauth-release.git"#tag=${_tag})
  28. md5sums=('SKIP')
  29.  
  30. build() {
  31. # Use ROS environment variables
  32. source /usr/share/ros-build-tools/clear-ros-env.sh
  33. [ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/setup.bash
  34.  
  35. # Create build directory
  36. [ -d ${srcdir}/build ] || mkdir ${srcdir}/build
  37. cd ${srcdir}/build
  38.  
  39. # Fix Python2/Python3 conflicts
  40. /usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${srcdir}/${_dir}
  41.  
  42. # Build project
  43. cmake ${srcdir}/${_dir} \
  44. -DCMAKE_BUILD_TYPE=Release \
  45. -DCATKIN_BUILD_BINARY_PACKAGE=ON \
  46. -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
  47. -DPYTHON_EXECUTABLE=/usr/bin/python3 \
  48. -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \
  49. -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \
  50. -DPYTHON_BASENAME=.cpython-37m \
  51. -DSETUPTOOLS_DEB_LAYOUT=OFF
  52. make
  53. }
  54.  
  55. package() {
  56. cd "${srcdir}/build"
  57. make DESTDIR="${pkgdir}/" install
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement