diff options
author | Timon Engelke | 2018-09-08 19:53:48 +0200 |
---|---|---|
committer | Timon Engelke | 2018-09-08 19:53:48 +0200 |
commit | 34b3d83831b1a31010d1b9e455684400351446e0 (patch) | |
tree | 4076a6e0450ebce2ebcce7a91a4a2d5a11c2e1c5 | |
download | aur-34b3d83831b1a31010d1b9e455684400351446e0.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 61 |
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..924950ffce29 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ros-melodic-ecl-config + pkgdesc = ROS - These tools inspect and describe your system with macros, types and functions. + pkgver = 0.61.6 + pkgrel = 1 + url = http://wiki.ros.org/ecl_config + arch = any + license = BSD + makedepends = cmake + makedepends = ros-build-tools + makedepends = ros-melodic-ecl-license + makedepends = ros-melodic-ecl-build + makedepends = ros-melodic-catkin + depends = ros-melodic-ecl-license + depends = ros-melodic-ecl-build + source = ros-melodic-ecl-config-0.61.6-0.tar.gz::https://github.com/yujinrobot-release/ecl_lite-release/archive/release/melodic/ecl_config/0.61.6-0.tar.gz + sha256sums = a8fb8da4c0d398f4f209b8a0f35c738ee3aaca992c8bd3c5d541f60637b83063 + +pkgname = ros-melodic-ecl-config + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c0c9095c81e5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: Timon Engelke <aur@timonengelke.de> +pkgdesc="ROS - These tools inspect and describe your system with macros, types and functions." +url='http://wiki.ros.org/ecl_config' + +pkgname='ros-melodic-ecl-config' +pkgver='0.61.6' +_pkgver_patch=0 +arch=('any') +pkgrel=1 +license=('BSD') + +ros_makedepends=(ros-melodic-ecl-license + ros-melodic-ecl-build + ros-melodic-catkin) +makedepends=('cmake' 'ros-build-tools' + ${ros_makedepends[@]}) + +ros_depends=(ros-melodic-ecl-license + ros-melodic-ecl-build) +depends=(${ros_depends[@]}) + +# Git version (e.g. for debugging) +# _tag=release/melodic/ecl_config/${pkgver}-${_pkgver_patch} +# _dir=${pkgname} +# 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-melodic-ecl_config-${pkgver}-${_pkgver_patch}" +source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/yujinrobot-release/ecl_lite-release/archive/release/melodic/ecl_config/${pkgver}-${_pkgver_patch}.tar.gz") +sha256sums=('a8fb8da4c0d398f4f209b8a0f35c738ee3aaca992c8bd3c5d541f60637b83063') + +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.7m \ + -DPYTHON_LIBRARY=/usr/lib/libpython3.7m.so \ + -DPYTHON_BASENAME=-python3.7m \ + -DSETUPTOOLS_DEB_LAYOUT=OFF + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +} |