# Script generated with import_catkin_packages.py. # For more information: https://github.com/bchretien/arch-ros-stacks. pkgdesc="ROS - Low-level build system macros and infrastructure for ROS." url='https://www.wiki.ros.org/catkin' pkgname='ros-melodic-catkin' pkgver='0.7.19' arch=('any') pkgrel=1 license=('BSD') ros_makedepends=( ) makedepends=( 'cmake' ${ros_makedepends[@]} python-catkin_pkg python-empy python ) ros_depends=( ) depends=( ${ros_depends[@]} python-nose gtest python-catkin_pkg python-empy gmock python ros-build-tools-py3 ) _dir="catkin-${pkgver}" source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros/catkin/archive/${pkgver}.tar.gz") sha256sums=('b83d66640df99f72bc37160e8b60a76df6c87ff8dcbb9ab096911c44f08d13e1') 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 the 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 the project. cmake ${srcdir}/${_dir} \ -DCMAKE_BUILD_TYPE=Release \ -DCATKIN_BUILD_BINARY_PACKAGE=OFF \ -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \ -DPYTHON_EXECUTABLE=/usr/bin/python3 \ -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \ -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \ -DPYTHON_BASENAME=.cpython-37m \ -DSETUPTOOLS_DEB_LAYOUT=OFF make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}/" install }