summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 28 insertions, 7 deletions
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