summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoracxz2020-05-24 11:52:35 -0400
committeracxz2020-05-24 11:52:35 -0400
commit30320111c3989ea890d9cd30496ecf481f265ecf (patch)
tree7c00879e01d094ac51b6138c594494f727dd588c /PKGBUILD
parentc34ff0d3b289237ce2c4a8347accef23019e5253 (diff)
downloadaur-30320111c3989ea890d9cd30496ecf481f265ecf.tar.gz
upd to noetic, cmake vars, python
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 9 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 77df98bb048..44e270ed75e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgdesc="ROS - Tutorial showing how to compile your own C++ program with RViz displays and features."
url='https://wiki.ros.org/librviz_tutorial'
-pkgname='ros-melodic-librviz-tutorial'
+pkgname='ros-noetic-librviz-tutorial'
pkgver='0.10.3'
_pkgver_patch=0
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h')
@@ -11,9 +11,9 @@ pkgrel=3
license=('BSD')
ros_makedepends=(
- ros-melodic-rviz
- ros-melodic-roscpp
- ros-melodic-catkin
+ ros-noetic-rviz
+ ros-noetic-roscpp
+ ros-noetic-catkin
)
makedepends=(
@@ -24,8 +24,8 @@ makedepends=(
)
ros_depends=(
- ros-melodic-rviz
- ros-melodic-roscpp
+ ros-noetic-rviz
+ ros-noetic-roscpp
)
depends=(
@@ -40,21 +40,17 @@ sha256sums=('a3162d933fea0dd58b99e46fb71ea5d8596ef6e46eaf3a906e4bf20e9ca1bb1c')
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
+ [ -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
- # 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=ON \
- -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
- -DPYTHON_EXECUTABLE=/usr/bin/python3 \
+ -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic \
+ -DPYTHON_EXECUTABLE=/usr/bin/python \
-DSETUPTOOLS_DEB_LAYOUT=OFF
make
}