summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonçalo Camelo Neves Pereira2019-01-09 19:25:37 +0100
committerGonçalo Camelo Neves Pereira2019-01-09 19:25:37 +0100
commitafe184cc61d975d0d57cd20c40bf0df9a8f2eb98 (patch)
tree1a08ee0915fea98e9a9494409b30c4675373375d
parentdb7718bf4667b92aa0705b365f12f3ed5de0bf83 (diff)
downloadaur-afe184cc61d975d0d57cd20c40bf0df9a8f2eb98.tar.gz
New Version
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD86
2 files changed, 47 insertions, 43 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1b887dac1fe..577dd6b9439 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,11 +10,11 @@ pkgbase = ros-melodic-nodelet-topic-tools
makedepends = ros-melodic-dynamic-reconfigure
makedepends = ros-melodic-catkin
makedepends = boost
- depends = ros-melodic-pluginlib
depends = ros-melodic-nodelet
- depends = ros-melodic-roscpp
depends = ros-melodic-dynamic-reconfigure
+ depends = ros-melodic-roscpp
depends = ros-melodic-message-filters
+ depends = ros-melodic-pluginlib
depends = boost
source = ros-melodic-nodelet-topic-tools-1.9.16-0.tar.gz::https://github.com/ros-gbp/nodelet_core-release/archive/release/melodic/nodelet_topic_tools/1.9.16-0.tar.gz
sha256sums = 39f55bdfb39c520b29a3c6004ca8d359a2e2ffc8da9ed254ba38c180bd035ae3
diff --git a/PKGBUILD b/PKGBUILD
index cb176c57b90..a2e31a59916 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
-# Script generated with import_catkin_packages.py
-# For more information: https://github.com/bchretien/arch-ros-stacks
+# Script generated with import_catkin_packages.py.
+# For more information: https://github.com/bchretien/arch-ros-stacks.
pkgdesc="ROS - This package contains common nodelet tools such as a mux, demux and throttle."
url='http://ros.org/wiki/nodelet_topic_tools'
@@ -10,57 +10,61 @@ arch=('any')
pkgrel=1
license=('BSD')
-ros_makedepends=(ros-melodic-dynamic-reconfigure
- ros-melodic-catkin)
-makedepends=('cmake' 'ros-build-tools'
- ${ros_makedepends[@]}
- boost)
+ros_makedepends=(
+ ros-melodic-dynamic-reconfigure
+ ros-melodic-catkin
+)
-ros_depends=(ros-melodic-pluginlib
- ros-melodic-nodelet
- ros-melodic-roscpp
- ros-melodic-dynamic-reconfigure
- ros-melodic-message-filters)
-depends=(${ros_depends[@]}
- boost)
+makedepends=(
+ 'cmake'
+ 'ros-build-tools'
+ ${ros_makedepends[@]}
+ boost
+)
-# Git version (e.g. for debugging)
-# _tag=release/melodic/nodelet_topic_tools/${pkgver}-${_pkgver_patch}
-# _dir=${pkgname}
-# source=("${_dir}"::"git+https://github.com/ros-gbp/nodelet_core-release.git"#tag=${_tag})
-# sha256sums=('SKIP')
+ros_depends=(
+ ros-melodic-nodelet
+ ros-melodic-dynamic-reconfigure
+ ros-melodic-roscpp
+ ros-melodic-message-filters
+ ros-melodic-pluginlib
+)
+
+depends=(
+ ${ros_depends[@]}
+ boost
+)
-# Tarball version (faster download)
_dir="nodelet_core-release-release-melodic-nodelet_topic_tools-${pkgver}-${_pkgver_patch}"
source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/nodelet_core-release/archive/release/melodic/nodelet_topic_tools/${pkgver}-${_pkgver_patch}.tar.gz")
sha256sums=('39f55bdfb39c520b29a3c6004ca8d359a2e2ffc8da9ed254ba38c180bd035ae3')
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
+ # 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
+ # 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}
+ # 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=.cpython-37m \
- -DSETUPTOOLS_DEB_LAYOUT=OFF
- make
+ # 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 \
+ -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
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
}