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.29' epoch='1' arch=('any') pkgrel='2' 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 ) _dir="catkin-${pkgver}/" source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros/catkin/archive/${pkgver}.tar.gz" "${pkgname}-${pkgver}-7fa3eb3.patch"::"https://github.com/ros/catkin/commit/7fa3eb3508ba12c34d85b8e54bbdf4bbdc60a5c1.patch") sha256sums=('8a86803b9081b19d2d37c3d028cc9f7bdfc7122f6204ec7e77ae0cbfda57ff71' '7e11d02c941edb78d5558ab2dda30249f4aba734a3d24d685a58b2ce307cefef') prepare() { cd ${srcdir}/${_dir} patch -p1 < "${srcdir}/${pkgname}-${pkgver}-7fa3eb3.patch" } 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 # 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 \ -DSETUPTOOLS_DEB_LAYOUT=OFF make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}/" install }