summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimon Engelke2018-09-08 19:36:52 +0200
committerTimon Engelke2018-09-08 19:36:52 +0200
commit37b28149152c515406d9815bc09ae5afc752b417 (patch)
treef531f66c41f2dee85af88246d3db01869df1aa55
downloadaur-37b28149152c515406d9815bc09ae5afc752b417.tar.gz
Initial
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD65
2 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a84c9b97cb6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = ros-melodic-nav-core
+ pkgdesc = ROS - This package provides common interfaces for navigation specific robot actions.
+ pkgver = 1.16.2
+ pkgrel = 1
+ url = http://wiki.ros.org/nav_core
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-std-msgs
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-costmap-2d
+ makedepends = ros-melodic-tf
+ makedepends = ros-melodic-geometry-msgs
+ depends = ros-melodic-std-msgs
+ depends = ros-melodic-costmap-2d
+ depends = ros-melodic-tf
+ depends = ros-melodic-geometry-msgs
+ source = ros-melodic-nav-core-1.16.2-0.tar.gz::https://github.com/ros-gbp/navigation-release/archive/release/melodic/nav_core/1.16.2-0.tar.gz
+ sha256sums = d598327496621c871e857d4fb92da871e9a7227397d849c94a7e49f993a239c3
+
+pkgname = ros-melodic-nav-core
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4f26e1a1f42
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Timon Engelke <aur@timonengelke.de>
+pkgdesc="ROS - This package provides common interfaces for navigation specific robot actions."
+url='http://wiki.ros.org/nav_core'
+
+pkgname='ros-melodic-nav-core'
+pkgver='1.16.2'
+_pkgver_patch='0'
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-melodic-std-msgs
+ ros-melodic-catkin
+ ros-melodic-costmap-2d
+ ros-melodic-tf
+ ros-melodic-geometry-msgs)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-melodic-std-msgs
+ ros-melodic-costmap-2d
+ ros-melodic-tf
+ ros-melodic-geometry-msgs)
+depends=(${ros_depends[@]})
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/nav_core/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/navigation-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="navigation-release-release-melodic-nav_core-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/navigation-release/archive/release/melodic/nav_core/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('d598327496621c871e857d4fb92da871e9a7227397d849c94a7e49f993a239c3')
+
+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 3 ${srcdir}/${_dir}
+
+ # Build project
+ cmake ${srcdir}/${_dir} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATKIN_BUILD_BINARY_PACKAGE=ON \
+ -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=-python3.7m \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}