summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormajor2020-01-10 00:39:37 +0000
committermajor2020-01-10 00:39:37 +0000
commit604f00927600de976cc9009095e636325dea0dc1 (patch)
treec0e70189760bdedea01dde47cd2bf7bc129bbd35
downloadaur-604f00927600de976cc9009095e636325dea0dc1.tar.gz
initial commit with adjusted kinetic package (changes python2 to python3, kinetic to melodic)
-rw-r--r--.SRCINFO31
-rw-r--r--PKGBUILD74
2 files changed, 105 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1c2ed2c7b92
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = ros-melodic-opencv-apps
+ pkgdesc = ROS - opencv_apps provides various nodes that run internally OpenCVs functionalities and publish the result as ROS topics.
+ pkgver = 1.12.0
+ pkgrel = 2
+ url = http://www.ros.org/
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-std-srvs
+ makedepends = ros-melodic-cv-bridge
+ makedepends = ros-melodic-message-generation
+ makedepends = ros-melodic-std-msgs
+ makedepends = ros-melodic-roscpp
+ makedepends = ros-melodic-dynamic-reconfigure
+ makedepends = ros-melodic-nodelet
+ makedepends = ros-melodic-image-transport
+ makedepends = ros-melodic-catkin
+ depends = ros-melodic-cv-bridge
+ depends = ros-melodic-nodelet
+ depends = ros-melodic-message-runtime
+ depends = ros-melodic-std-msgs
+ depends = ros-melodic-roscpp
+ depends = ros-melodic-dynamic-reconfigure
+ depends = ros-melodic-std-srvs
+ depends = ros-melodic-image-transport
+ source = ros-melodic-opencv-apps-1.12.0-0.tar.gz::https://github.com/ros-perception/opencv_apps-release/archive/release/melodic/opencv_apps/1.12.0-0.tar.gz
+ sha256sums = 3ba64e4345d89fa59c01fff7f1123a697277005265715636d246c0c3b7867a12
+
+pkgname = ros-melodic-opencv-apps
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3db7637a97f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,74 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - opencv_apps provides various nodes that run internally OpenCVs functionalities and publish the result as ROS topics."
+url='http://www.ros.org/'
+
+pkgname='ros-melodic-opencv-apps'
+pkgver='1.12.0'
+_pkgver_patch=0
+arch=('any')
+pkgrel=2
+license=('BSD')
+
+ros_makedepends=(ros-melodic-std-srvs
+ ros-melodic-cv-bridge
+ ros-melodic-message-generation
+ ros-melodic-std-msgs
+ ros-melodic-roscpp
+ ros-melodic-dynamic-reconfigure
+ ros-melodic-nodelet
+ ros-melodic-image-transport
+ ros-melodic-catkin)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-melodic-cv-bridge
+ ros-melodic-nodelet
+ ros-melodic-message-runtime
+ ros-melodic-std-msgs
+ ros-melodic-roscpp
+ ros-melodic-dynamic-reconfigure
+ ros-melodic-std-srvs
+ ros-melodic-image-transport)
+depends=(${ros_depends[@]})
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/opencv_apps/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-perception/opencv_apps-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="opencv_apps-release-release-melodic-opencv_apps"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-perception/opencv_apps-release/archive/release/melodic/opencv_apps/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('3ba64e4345d89fa59c01fff7f1123a697277005265715636d246c0c3b7867a12')
+
+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 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 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.8 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython3.8.so \
+ -DPYTHON_BASENAME=-python3.8 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}