# Script generated with import_catkin_packages.py. # For more information: https://github.com/bchretien/arch-ros-stacks. pkgdesc="ROS - ros_tutorials contains packages that demonstrate various features of ROS, as well as support packages which help demonstrate those features." url='https://wiki.ros.org/ros_tutorials' pkgname='ros-noetic-ros-tutorials' pkgver='0.9.1' arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h') pkgrel=3 license=('BSD') ros_makedepends=( ros-noetic-catkin ) makedepends=( 'cmake' 'ros-build-tools' ${ros_makedepends[@]} ) ros_depends=( ros-noetic-roscpp-tutorials ros-noetic-rospy-tutorials ros-noetic-turtlesim ) depends=( ${ros_depends[@]} ) _dir="ros_tutorials-${pkgver}/ros_tutorials" source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros/ros_tutorials/archive/${pkgver}.tar.gz") sha256sums=('b39929a2ac912326fc114256e755fff5d0f0e5e5e7c99640d013eb7f916b85f4') build() { # Use ROS environment variables. source /usr/share/ros-build-tools/clear-ros-env.sh [ -f /opt/ros/noetic/setup.bash ] && source /opt/ros/noetic/setup.bash # Create the build directory. [ -d ${srcdir}/build ] || mkdir ${srcdir}/build cd ${srcdir}/build # Build the project. cmake ${srcdir}/${_dir} \ -DCATKIN_BUILD_BINARY_PACKAGE=ON \ -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic \ -DPYTHON_EXECUTABLE=/usr/bin/python \ -DSETUPTOOLS_DEB_LAYOUT=OFF make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}/" install }