summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormajor major2017-03-02 03:58:16 +0100
committermajor major2017-03-02 03:58:16 +0100
commit5ad023edc63642296006f4efa1a4384649d15133 (patch)
treeadb41d0496401f5b11331f9ffb3381af43d69a42
downloadaur-5ad023edc63642296006f4efa1a4384649d15133.tar.gz
Updated package to Ros Kinetic. Used own repository because of patch was needed. Craete a Patch and use offical repo
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD72
2 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ab2301f214c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = ros-kinetic-stage
+ pkgdesc = ROS - Mobile robot simulator http://rtv.github.com/Stage.
+ pkgver = 4.1.1
+ pkgrel = 9
+ url = http://rtv.github.com/Stage
+ arch = any
+ license = GPL
+ makedepends = cmake
+ makedepends = git
+ makedepends = ros-build-tools
+ makedepends = fltk
+ makedepends = libjpeg-turbo
+ makedepends = gtk2
+ makedepends = libtool
+ makedepends = mesa
+ makedepends = pkg-config
+ depends = ros-kinetic-catkin
+ depends = libjpeg-turbo
+ depends = mesa
+ depends = fltk
+ depends = gtk2
+ source = stage::git+https://github.com/majorx234/stage.git
+ md5sums = SKIP
+
+pkgname = ros-kinetic-stage
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9dd783c0991
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,72 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - Mobile robot simulator http://rtv.github.com/Stage."
+url='http://rtv.github.com/Stage'
+
+pkgname='ros-kinetic-stage'
+pkgver='4.1.1'
+_pkgver_patch=8
+arch=('any')
+pkgrel=9
+license=('GPL')
+
+ros_makedepends=()
+makedepends=('cmake' 'git' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ fltk
+ libjpeg-turbo
+ gtk2
+ libtool
+ mesa
+ pkg-config)
+
+ros_depends=(ros-kinetic-catkin)
+depends=(${ros_depends[@]}
+ libjpeg-turbo
+ mesa
+ fltk
+ gtk2)
+
+_tag=release/kinetic/stage/${pkgver}-${_pkgver_patch}
+_dir=stage
+source=("${_dir}"::"git+https://github.com/majorx234/stage.git")
+md5sums=('SKIP')
+
+#prepare() {
+# unzip stage.hh.diff.zip
+# cd $pkgname-$pkgver
+# patch -Np1 -i "${srcdir}/eject.patch"
+#}
+
+
+build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/kinetic/setup.bash ] && source /opt/ros/kinetic/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/kinetic \
+ -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
+ mv ${pkgdir}/opt/ros/kinetic/lib64 ${pkgdir}/opt/ros/kinetic/lib
+}
+