summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchmad Fathoni2021-04-14 10:23:16 +0700
committerAchmad Fathoni2021-04-14 10:23:16 +0700
commit45a7bc7ff9a3d542d8963919006e448708324b6a (patch)
tree6e31ffc87b288c22c7f257e36ec0b979910ad6d8
downloadaur-ros-noetic-nmea-msgs.tar.gz
1.1.0
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD50
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a7d99e7ee62
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = ros-noetic-nmea-msgs
+ pkgdesc = ROS - The nmea_msgs package contains messages related to data in the NMEA format.
+ pkgver = 1.1.0
+ pkgrel = 1
+ url = http://ros.org/wiki/nmea_msgs
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = git
+ makedepends = ros-build-tools
+ makedepends = ros-noetic-std-msgs
+ makedepends = ros-noetic-catkin
+ makedepends = ros-noetic-message-generation
+ depends = ros-noetic-std-msgs
+ depends = ros-noetic-message-runtime
+ source = nmea_msgs-1.1.0::https://github.com/ros-drivers/nmea_msgs/archive/refs/tags/1.1.0.tar.gz
+ md5sums = SKIP
+
+pkgname = ros-noetic-nmea-msgs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1a82efa163
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+pkgdesc="ROS - The nmea_msgs package contains messages related to data in the NMEA format."
+url='http://ros.org/wiki/nmea_msgs'
+
+pkgname='ros-noetic-nmea-msgs'
+pkgver='1.1.0'
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-noetic-std-msgs
+ ros-noetic-catkin
+ ros-noetic-message-generation)
+makedepends=('cmake' 'git' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-noetic-std-msgs
+ ros-noetic-message-runtime)
+depends=(${ros_depends[@]})
+
+_dir=nmea_msgs-$pkgver
+source=("${_dir}"::"https://github.com/ros-drivers/nmea_msgs/archive/refs/tags/$pkgver.tar.gz")
+md5sums=('SKIP')
+
+build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/noetic/setup.bash ] && source /opt/ros/noetic/setup.bash
+
+ # Create build directory
+ [ -d ${srcdir}/build ] || mkdir ${srcdir}/build
+ cd ${srcdir}/build
+
+ # Build project
+ cmake ${srcdir}/${_dir} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATKIN_BUILD_BINARY_PACKAGE=ON \
+ -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic \
+ -DPYTHON_EXECUTABLE=/usr/bin/python3 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python3.9 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython3.9.so \
+ -DPYTHON_BASENAME=-python3.9 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}
+