# Script generated with import_catkin_packages.py # For more information: https://github.com/bchretien/arch-ros-stacks pkgdesc="ROS - Translates joy msgs." url='https://wiki.ros.org/joy_listener' pkgname='ros-melodic-joy-listener' pkgver='0.2.6' _pkgver_patch=0 arch=('any') pkgrel=4 license=('BSD') ros_makedepends=(ros-melodic-catkin ros-melodic-sensor-msgs ros-melodic-rospy) makedepends=('cmake' 'ros-build-tools' ${ros_makedepends[@]}) ros_depends=(ros-melodic-sensor-msgs ros-melodic-rospy) depends=(${ros_depends[@]}) # Git version (e.g. for debugging) # _tag=release/melodic/joy_listener/${pkgver}-${_pkgver_patch} # _dir=${pkgname} # source=("${_dir}"::"git+https://github.com/wu-robotics/wu_ros_tools.git"#tag=${_tag}) # sha256sums=('SKIP') # Tarball version (faster download) _dir="wu_ros_tools-${pkgver}/joy_listener" source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/DLu/wu_ros_tools/archive/${pkgver}.tar.gz") sha256sums=('27323d7584aed0782d4b64ca4f1955b237ff3b41736d075d29a9c825a8f55366') build() { # Use ROS environment variables source /usr/share/ros-build-tools/clear-ros-env.sh [ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/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 \ -DCATKIN_ENABLE_TESTING=0 \ -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \ -DPYTHON_EXECUTABLE=/usr/bin/python3 \ -DSETUPTOOLS_DEB_LAYOUT=OFF make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}/" install }