summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonçalo Camelo Neves Pereira2018-05-13 19:43:51 +0100
committerGonçalo Camelo Neves Pereira2018-05-13 19:43:51 +0100
commitc9be0d054ca90fdb3bee3eb1abf22d2f1f40c262 (patch)
treec2cc30e4c9750f6f5aefcac751037fc5b23099de
downloadaur-c9be0d054ca90fdb3bee3eb1abf22d2f1f40c262.tar.gz
Update
-rw-r--r--.SRCINFO33
-rw-r--r--PKGBUILD76
2 files changed, 109 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5917af46859
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+pkgbase = ros-melodic-theora-image-transport
+ pkgdesc = ROS - Theora_image_transport provides a plugin to image_transport for transparently sending an image stream encoded with the Theora codec.
+ pkgver = 1.9.5
+ pkgrel = 1
+ url = http://www.ros.org/wiki/image_transport_plugins
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-dynamic-reconfigure
+ makedepends = ros-melodic-std-msgs
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-pluginlib
+ makedepends = ros-melodic-rosbag
+ makedepends = ros-melodic-cv-bridge
+ makedepends = ros-melodic-image-transport
+ makedepends = ros-melodic-message-generation
+ makedepends = libogg
+ makedepends = libtheora
+ depends = ros-melodic-dynamic-reconfigure
+ depends = ros-melodic-std-msgs
+ depends = ros-melodic-message-runtime
+ depends = ros-melodic-pluginlib
+ depends = ros-melodic-rosbag
+ depends = ros-melodic-cv-bridge
+ depends = ros-melodic-image-transport
+ depends = libogg
+ depends = libtheora
+ source = ros-melodic-theora-image-transport-1.9.5-0.tar.gz::https://github.com/ros-gbp/image_transport_plugins-release/archive/release/melodic/theora_image_transport/1.9.5-0.tar.gz
+ sha256sums = 03701fa45f64b4642eb8b7720662363bb10c4f20e32da2783c595258fc3eaced
+
+pkgname = ros-melodic-theora-image-transport
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..07e10f22565
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,76 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - Theora_image_transport provides a plugin to image_transport for transparently sending an image stream encoded with the Theora codec."
+url='http://www.ros.org/wiki/image_transport_plugins'
+
+pkgname='ros-melodic-theora-image-transport'
+pkgver='1.9.5'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-melodic-dynamic-reconfigure
+ ros-melodic-std-msgs
+ ros-melodic-catkin
+ ros-melodic-pluginlib
+ ros-melodic-rosbag
+ ros-melodic-cv-bridge
+ ros-melodic-image-transport
+ ros-melodic-message-generation)
+makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ libogg
+ libtheora)
+
+ros_depends=(ros-melodic-dynamic-reconfigure
+ ros-melodic-std-msgs
+ ros-melodic-message-runtime
+ ros-melodic-pluginlib
+ ros-melodic-rosbag
+ ros-melodic-cv-bridge
+ ros-melodic-image-transport)
+depends=(${ros_depends[@]}
+ libogg
+ libtheora)
+
+# Git version (e.g. for debugging)
+# _tag=release/melodic/theora_image_transport/${pkgver}-${_pkgver_patch}
+# _dir=${pkgname}
+# source=("${_dir}"::"git+https://github.com/ros-gbp/image_transport_plugins-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="image_transport_plugins-release-release-melodic-theora_image_transport-${pkgver}-${_pkgver_patch}"
+source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-gbp/image_transport_plugins-release/archive/release/melodic/theora_image_transport/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('03701fa45f64b4642eb8b7720662363bb10c4f20e32da2783c595258fc3eaced')
+
+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 2 ${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/python2 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+ -DPYTHON_BASENAME=-python2.7 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+}