diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | CMakeLists.patch | 10 | ||||
-rw-r--r-- | PKGBUILD | 13 |
3 files changed, 23 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = ros-melodic-cartographer-ros pkgdesc = ROS - Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations. pkgver = 1.0.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/googlecartographer/cartographer_ros arch = any license = Apache 2.0 @@ -57,7 +57,9 @@ pkgbase = ros-melodic-cartographer-ros depends = gflags depends = pcl source = ros-melodic-cartographer-ros-1.0.0.tar.gz::https://github.com/ros-gbp/cartographer_ros-release/archive/release/melodic/cartographer_ros/1.0.0.tar.gz + source = CMakeLists.patch sha256sums = 874e830d4b3e341cf7f53e66499f84e5f46bb9fda97cfe5d523cee6ec2ebd6d0 + sha256sums = 18bafe6a7b7c0a894ce2055ace65925dedab29aab0183f56ba01cb8937013b86 pkgname = ros-melodic-cartographer-ros diff --git a/CMakeLists.patch b/CMakeLists.patch new file mode 100644 index 000000000000..2f862f992809 --- /dev/null +++ b/CMakeLists.patch @@ -0,0 +1,10 @@ +--- CMakeLists.txt.old 2020-06-02 22:37:39.983352068 +0200 ++++ CMakeLists.txt 2020-06-02 22:37:49.753352117 +0200 +@@ -15,6 +15,7 @@ + cmake_minimum_required(VERSION 2.8.12) # Ships with Ubuntu 14.04 (Trusty) + + project(cartographer_ros) ++add_compile_options(-std=c++14) + + set(PACKAGE_DEPENDENCIES + cartographer_ros_msgs @@ -6,7 +6,7 @@ pkgname='ros-melodic-cartographer-ros' pkgver='1.0.0' arch=('any') - pkgrel=1 + pkgrel=2 license=('Apache 2.0') ros_makedepends=(ros-melodic-tf2-ros @@ -65,8 +65,15 @@ # Tarball version (faster download) _dir="cartographer_ros-release-release-melodic-cartographer_ros" - source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros-gbp/cartographer_ros-release/archive/release/melodic/cartographer_ros/${pkgver}.tar.gz") - sha256sums=('874e830d4b3e341cf7f53e66499f84e5f46bb9fda97cfe5d523cee6ec2ebd6d0') + source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros-gbp/cartographer_ros-release/archive/release/melodic/cartographer_ros/${pkgver}.tar.gz" + CMakeLists.patch) +sha256sums=('874e830d4b3e341cf7f53e66499f84e5f46bb9fda97cfe5d523cee6ec2ebd6d0' + '18bafe6a7b7c0a894ce2055ace65925dedab29aab0183f56ba01cb8937013b86') + +prepare() { + cd "${srcdir}/${_dir}" + patch -uN CMakeLists.txt ../CMakeLists.patch || return 1 +} build() { # Use ROS environment variables |