summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Reignier2016-02-03 01:11:36 +0100
committerRomain Reignier2016-02-03 01:11:36 +0100
commit7ab3295b743583e03ecdbd11867a35e5678b3fed (patch)
tree8d437f7b4955364fbceca4a69c376c2564e01c17
downloadaur-7ab3295b743583e03ecdbd11867a35e5678b3fed.tar.gz
Initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD64
2 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dc12f65d9b9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+# Generated by mksrcinfo v8
+# Wed Feb 3 00:11:36 UTC 2016
+pkgbase = ros-indigo-ecl-console
+ pkgdesc = ROS - Color codes for ansii consoles.
+ pkgver = 0.61.4
+ pkgrel = 1
+ url = http://wiki.ros.org/ecl_console
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = git
+ makedepends = ros-build-tools
+ makedepends = ros-indigo-ecl-license
+ makedepends = ros-indigo-catkin
+ makedepends = ros-indigo-ecl-config
+ makedepends = ros-indigo-ecl-build
+ depends = ros-indigo-ecl-license
+ depends = ros-indigo-ecl-config
+ depends = ros-indigo-ecl-build
+ source = https://github.com/yujinrobot-release/ecl_lite-release/archive/release/indigo/ecl_console/0.61.4-0.tar.gz
+ sha256sums = 7b85f1775901a9e6e0c9da9223ad4e9e391e05f544c5c23e78856b21c72a0e51
+
+pkgname = ros-indigo-ecl-console
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..67e03029677
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Script generated with import_catkin_packages.py
+# For more information: https://github.com/bchretien/arch-ros-stacks
+pkgdesc="ROS - Color codes for ansii consoles."
+url='http://wiki.ros.org/ecl_console'
+
+pkgname='ros-indigo-ecl-console'
+pkgver='0.61.4'
+_pkgver_patch=0
+arch=('any')
+pkgrel=1
+license=('BSD')
+
+ros_makedepends=(ros-indigo-ecl-license
+ ros-indigo-catkin
+ ros-indigo-ecl-config
+ ros-indigo-ecl-build)
+makedepends=('cmake' 'git' 'ros-build-tools'
+ ${ros_makedepends[@]})
+
+ros_depends=(ros-indigo-ecl-license
+ ros-indigo-ecl-config
+ ros-indigo-ecl-build)
+depends=(${ros_depends[@]})
+
+# Git version (e.g. for debugging)
+# _tag=release/indigo/ecl_console/${pkgver}-${_pkgver_patch}
+# _dir=ecl_console
+# source=("${_dir}"::"git+https://github.com/yujinrobot-release/ecl_lite-release.git"#tag=${_tag})
+# sha256sums=('SKIP')
+
+# Tarball version (faster download)
+_dir="ecl_lite-release-release-indigo-ecl_console-${pkgver}-${_pkgver_patch}"
+source=("https://github.com/yujinrobot-release/ecl_lite-release/archive/release/indigo/ecl_console/${pkgver}-${_pkgver_patch}.tar.gz")
+sha256sums=('7b85f1775901a9e6e0c9da9223ad4e9e391e05f544c5c23e78856b21c72a0e51')
+
+build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/indigo/setup.bash ] && source /opt/ros/indigo/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/indigo \
+ -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
+}