summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rakowski2017-10-24 21:36:41 +0200
committerTim Rakowski2017-10-24 21:36:41 +0200
commit8c5792e6bf0583980bb0bc1ff8c45e9a0e522660 (patch)
tree5369d4783ac21c0334f06213786b8f9125a27673
parentfa96842220e9e1f0ee62c1719cfa85f92e1d294c (diff)
downloadaur-8c5792e6bf0583980bb0bc1ff8c45e9a0e522660.tar.gz
Update to version 0.4.9-1
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD35
2 files changed, 29 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 874ffe95138..86f08f2dca8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Mon May 22 17:06:29 UTC 2017
+# Thu Aug 31 10:45:33 UTC 2017
pkgbase = ros-lunar-rqt-bag-plugins
pkgdesc = ROS - rqt_bag provides a GUI plugin for displaying and replaying ROS bag files.
pkgver = 0.4.8
diff --git a/PKGBUILD b/PKGBUILD
index 1f31911ae3d..7c6a1ec7149 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgdesc="ROS - rqt_bag provides a GUI plugin for displaying and replaying ROS ba
url='http://wiki.ros.org/rqt_bag'
pkgname='ros-lunar-rqt-bag-plugins'
-pkgver='0.4.8'
+pkgver='0.4.9'
_pkgver_patch=0
arch=('any')
pkgrel=1
@@ -28,6 +28,9 @@ depends=(${ros_depends[@]}
python2-pillow
python2-cairo)
+ros_checkdepends=()
+checkdepends=(${ros_checkdepends[@]})
+
# Git version (e.g. for debugging)
# _tag=release/lunar/rqt_bag_plugins/${pkgver}-${_pkgver_patch}
# _dir=${pkgname}
@@ -37,7 +40,7 @@ depends=(${ros_depends[@]}
# Tarball version (faster download)
_dir="rqt_bag-release-release-lunar-rqt_bag_plugins-${pkgver}-${_pkgver_patch}"
source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/rqt_bag-release/archive/release/lunar/rqt_bag_plugins/${pkgver}-${_pkgver_patch}.tar.gz")
-sha256sums=('60bc09e5bc568a9ded027ab7bdadb572eac72e6d70d3a3ea64bf6afdea44dab3')
+sha256sums=('aad391bbcbac60dd237f418be76dd6f175431f5e1c257a351c6b3cb61bb55143')
build() {
# Use ROS environment variables
@@ -45,14 +48,14 @@ build() {
[ -f /opt/ros/lunar/setup.bash ] && source /opt/ros/lunar/setup.bash
# Create build directory
- [ -d ${srcdir}/build ] || mkdir ${srcdir}/build
- cd ${srcdir}/build
+ [ -d "${srcdir}/build" ] || mkdir "${srcdir}/build"
+ cd "${srcdir}/build"
# Fix Python2/Python3 conflicts
- /usr/share/ros-build-tools/fix-python-scripts.sh -v 2 ${srcdir}/${_dir}
+ /usr/share/ros-build-tools/fix-python-scripts.sh -v 2 "${srcdir}/${_dir}"
# Build project
- cmake ${srcdir}/${_dir} \
+ cmake "${srcdir}/${_dir}" \
-DCMAKE_BUILD_TYPE=Release \
-DCATKIN_BUILD_BINARY_PACKAGE=ON \
-DCMAKE_INSTALL_PREFIX=/opt/ros/lunar \
@@ -60,10 +63,28 @@ build() {
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
-DPYTHON_BASENAME=-python2.7 \
- -DSETUPTOOLS_DEB_LAYOUT=OFF
+ -DSETUPTOOLS_DEB_LAYOUT=OFF \
+ -DCATKIN_ENABLE_TESTING=OFF
make
}
+check() {
+ cmake "${srcdir}/${_dir}" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATKIN_BUILD_BINARY_PACKAGE=ON \
+ -DCMAKE_INSTALL_PREFIX=/opt/ros/lunar \
+ -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+ -DPYTHON_BASENAME=-python2.7 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF \
+ -DCATKIN_ENABLE_TESTING=ON
+
+ make tests
+ . /opt/ros/lunar/setup.bash
+ make run_tests
+}
+
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}/" install