summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonçalo Camelo Neves Pereira2018-09-26 13:28:53 +0200
committerGonçalo Camelo Neves Pereira2018-09-26 13:28:53 +0200
commitdb7718bf4667b92aa0705b365f12f3ed5de0bf83 (patch)
tree0ff10a78e418f043c1353b7e0ace89adcae545f2
parentafef35560717faa82d15492e9dd30955e1a450bd (diff)
downloadaur-db7718bf4667b92aa0705b365f12f3ed5de0bf83.tar.gz
Update
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD103
2 files changed, 50 insertions, 65 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3e0639af0cf..1b887dac1fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,17 +7,17 @@ pkgbase = ros-melodic-nodelet-topic-tools
license = BSD
makedepends = cmake
makedepends = ros-build-tools
- makedepends = ros-melodic-catkin
makedepends = ros-melodic-dynamic-reconfigure
+ makedepends = ros-melodic-catkin
makedepends = boost
- depends = ros-melodic-message-filters
depends = ros-melodic-pluginlib
- depends = ros-melodic-dynamic-reconfigure
- depends = ros-melodic-roscpp
depends = ros-melodic-nodelet
+ depends = ros-melodic-roscpp
+ depends = ros-melodic-dynamic-reconfigure
+ depends = ros-melodic-message-filters
depends = boost
- source = ros-melodic-nodelet-topic-tools::git+https://github.com/ros-gbp/nodelet_core-release.git
- sha256sums = SKIP
+ 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
pkgname = ros-melodic-nodelet-topic-tools
diff --git a/PKGBUILD b/PKGBUILD
index f12047cb20b..cb176c57b90 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,72 +10,57 @@ arch=('any')
pkgrel=1
license=('BSD')
-ros_makedepends=(
- ros-melodic-catkin
- ros-melodic-dynamic-reconfigure
-)
+ros_makedepends=(ros-melodic-dynamic-reconfigure
+ ros-melodic-catkin)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ boost)
-makedepends=(
- 'cmake'
- 'ros-build-tools'
- ${ros_makedepends[@]}
- boost
-)
+ros_depends=(ros-melodic-pluginlib
+ ros-melodic-nodelet
+ ros-melodic-roscpp
+ ros-melodic-dynamic-reconfigure
+ ros-melodic-message-filters)
+depends=(${ros_depends[@]}
+ boost)
-ros_depends=(
- ros-melodic-message-filters
- ros-melodic-pluginlib
- ros-melodic-dynamic-reconfigure
- ros-melodic-roscpp
- ros-melodic-nodelet
-)
+# 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')
-depends=(
- ${ros_depends[@]}
- boost
-)
-
-_dir=${pkgname}
-source=("${_dir}"::"git+https://github.com/ros-gbp/nodelet_core-release.git")
-sha256sums=('SKIP')
-
-prepare() {
- cd ${srcdir}/${_dir}
- git checkout upstream
- _pkgname=$(echo ${pkgname} | sed 's/ros-lunar-//' | sed 's/-/_/g')
-
- if [ -d ${_pkgname} ]; then
- git subtree split -P ${_pkgname} --branch ${_pkgname}
- git checkout ${_pkgname}
- fi
-}
+# 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 the build directory.
- [ -d ${srcdir}/build ] || mkdir ${srcdir}/build
- cd ${srcdir}/build
+ # 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}
+ # 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 \
- -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \
- -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \
- -DPYTHON_BASENAME=.cpython-37m \
- -DSETUPTOOLS_DEB_LAYOUT=OFF
- make
+ # 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
}
package() {
- cd "${srcdir}/build"
- make DESTDIR="${pkgdir}/" install
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
}