summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbionade242019-05-11 11:35:22 +0000
committerbionade242019-05-11 11:35:22 +0000
commit0d6902ec1ecac6d4fc7fc3c30580c77602fa8a06 (patch)
treefce77f4a96536e78d0f17f0e82493ebd1e799831
downloadaur-0d6902ec1ecac6d4fc7fc3c30580c77602fa8a06.tar.gz
Initial commit
-rw-r--r--.SRCINFO36
-rw-r--r--PKGBUILD85
2 files changed, 121 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5afc254d870
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,36 @@
+pkgbase = ros-melodic-roscpp-git
+ pkgdesc = ROS - roscpp is a C++ implementation of ROS.
+ pkgver = 1.12.14
+ pkgrel = 1
+ url = http://ros.org/wiki/roscpp
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-xmlrpcpp
+ makedepends = ros-melodic-roscpp-traits
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-rosgraph-msgs
+ makedepends = ros-melodic-message-generation
+ makedepends = ros-melodic-cpp-common
+ makedepends = ros-melodic-std-msgs
+ makedepends = ros-melodic-rosconsole
+ makedepends = ros-melodic-roscpp-serialization
+ makedepends = ros-melodic-rostime
+ makedepends = ros-melodic-roslang
+ makedepends = pkg-config
+ depends = ros-melodic-rostime
+ depends = ros-melodic-xmlrpcpp
+ depends = ros-melodic-roscpp-traits
+ depends = ros-melodic-rosgraph-msgs
+ depends = ros-melodic-cpp-common
+ depends = ros-melodic-std-msgs
+ depends = ros-melodic-rosconsole
+ depends = ros-melodic-roscpp-serialization
+ depends = ros-melodic-message-runtime
+ conflicts = ros-melodic-roscpp
+ source = git+https://github.com/ros/ros_comm.git
+ sha256sums = SKIP
+
+pkgname = ros-melodic-roscpp-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..31e6209601c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,85 @@
+# Script generated with import_catkin_packages.py.
+# For more information: https://github.com/bchretien/arch-ros-stacks.
+pkgdesc="ROS - roscpp is a C++ implementation of ROS."
+url='http://ros.org/wiki/roscpp'
+
+pkgname='ros-melodic-roscpp-git'
+pkgver='1.12.14'
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(
+ ros-melodic-xmlrpcpp
+ ros-melodic-roscpp-traits
+ ros-melodic-catkin
+ ros-melodic-rosgraph-msgs
+ ros-melodic-message-generation
+ ros-melodic-cpp-common
+ ros-melodic-std-msgs
+ ros-melodic-rosconsole
+ ros-melodic-roscpp-serialization
+ ros-melodic-rostime
+ ros-melodic-roslang
+)
+
+makedepends=(
+ 'cmake'
+ 'ros-build-tools'
+ ${ros_makedepends[@]}
+ pkg-config
+)
+
+ros_depends=(
+ ros-melodic-rostime
+ ros-melodic-xmlrpcpp
+ ros-melodic-roscpp-traits
+ ros-melodic-rosgraph-msgs
+ ros-melodic-cpp-common
+ ros-melodic-std-msgs
+ ros-melodic-rosconsole
+ ros-melodic-roscpp-serialization
+ ros-melodic-message-runtime
+)
+
+depends=(
+ ${ros_depends[@]}
+)
+
+conflicts=(
+ ros-melodic-roscpp
+)
+
+_dir="ros_comm/clients/roscpp"
+source=("git+https://github.com/ros/ros_comm.git")
+sha256sums=('SKIP')
+
+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
+
+ # 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}
+
+ # 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
+}