diff options
author | Achmad Fathoni | 2021-04-13 22:37:59 +0700 |
---|---|---|
committer | Achmad Fathoni | 2021-04-13 22:37:59 +0700 |
commit | 4b0c0fda1bd5ba29027a61a07ace23294cf60d75 (patch) | |
tree | af537a6394753d3f427017cb8d615e79228035da /PKGBUILD | |
download | aur-4b0c0fda1bd5ba29027a61a07ace23294cf60d75.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2b9ec6dc2b88 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,70 @@ +# Script generated with import_catkin_packages.py +# For more information: https://github.com/bchretien/arch-ros-stacks +pkgdesc="ROS - Python and C++ interfaces for manipulating geodetic coordinates." +url='http://wiki.ros.org/geodesy' + +pkgname='ros-noetic-geodesy' +pkgver='0.5.5' +_pkgver_patch=0 +arch=('any') +pkgrel=1 +license=('BSD') + +ros_makedepends=(ros-noetic-uuid-msgs + ros-noetic-tf + ros-noetic-geometry-msgs + ros-noetic-unique-id + ros-noetic-sensor-msgs + ros-noetic-geographic-msgs + ros-noetic-angles + ros-noetic-catkin) +makedepends=('cmake' 'ros-build-tools' + ${ros_makedepends[@]} + python-catkin_pkg) + +ros_depends=(ros-noetic-uuid-msgs + ros-noetic-tf + ros-noetic-geometry-msgs + ros-noetic-unique-id + ros-noetic-sensor-msgs + ros-noetic-geographic-msgs) +depends=(${ros_depends[@]} + python-pyproj) + +# Git version (e.g. for debugging) +# _tag=release/noetic/geodesy/${pkgver}-${_pkgver_patch} +# _dir=${pkgname} +# source=("${_dir}"::"git+https://github.com/ros-geographic-info/geographic_info-release.git"#tag=${_tag}) +# sha256sums=('SKIP') + +# Tarball version (faster download) +_dir="geographic_info-release-release-noetic-geodesy" +source=("${pkgname}-${pkgver}-${_pkgver_patch}.tar.gz"::"https://github.com/ros-geographic-info/geographic_info-release/archive/release/noetic/geodesy/${pkgver}-${_pkgver_patch}.tar.gz") +sha256sums=('SKIP') + +build() { + # Use ROS environment variables + source /usr/share/ros-build-tools/clear-ros-env.sh + [ -f /opt/ros/noetic/setup.bash ] && source /opt/ros/noetic/setup.bash + + # Create build directory + [ -d ${srcdir}/build ] || mkdir ${srcdir}/build + cd ${srcdir}/build + + # Build project + cmake ${srcdir}/${_dir} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCATKIN_BUILD_BINARY_PACKAGE=ON \ + -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic \ + -DPYTHON_EXECUTABLE=/usr/bin/python3 \ + -DPYTHON_INCLUDE_DIR=/usr/include/python3.9 \ + -DPYTHON_LIBRARY=/usr/lib/libpython3.9.so \ + -DPYTHON_BASENAME=-python3.9 \ + -DSETUPTOOLS_DEB_LAYOUT=OFF + make +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +} |