diff options
author | Achmad Fathoni | 2021-04-14 19:09:38 +0700 |
---|---|---|
committer | Achmad Fathoni | 2021-04-14 19:09:38 +0700 |
commit | e1b367accf6cc584841179cb4318196eb3effba7 (patch) | |
tree | 9a35cb74a6fd26d29a327859bad3681204dcb698 | |
download | aur-e1b367accf6cc584841179cb4318196eb3effba7.tar.gz |
init commit
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 77 |
2 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9a5aa03b78e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = ros-noetic-ndt-omp-git + pkgdesc = OpenMP boosted NDT and GICP algorithms + pkgver = r22.c421372 + pkgrel = 1 + url = https://github.com/koide3/ndt_omp + arch = i686 + arch = x86_64 + arch = aarch64 + arch = armv7h + arch = armv6h + license = BSD + makedepends = cmake + makedepends = ros-build-tools + makedepends = ros-noetic-catkin + makedepends = ros-noetic-cpp-common + makedepends = ros-noetic-pcl-ros + depends = ros-noetic-cpp-common + depends = ros-noetic-pcl-ros + provides = ros-noetic-ndt-omp + source = ros-noetic-ndt-omp-git::git://github.com/koide3/ndt_omp.git + source = shared_ptr.patch::https://github.com/koide3/ndt_omp/pull/26.patch + sha256sums = SKIP + sha256sums = e0c0bc7c3a15b1431e674f75fa607f1592457a6093370abdc307ac834ceed4db + +pkgname = ros-noetic-ndt-omp-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..932ce6622c94 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: Achmad Fathoni<fathoni.id(at)gmail.com> + +pkgdesc="OpenMP boosted NDT and GICP algorithms" +url='https://github.com/koide3/ndt_omp' + +pkgname='ros-noetic-ndt-omp-git' +pkgver=r22.c421372 +arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h') +pkgrel=1 +license=('BSD') +provides=(${pkgname::-4}) + +ros_makedepends=( + ros-noetic-catkin + ros-noetic-cpp-common + ros-noetic-pcl-ros +) +makedepends=( + cmake + ros-build-tools + ${ros_makedepends[@]} +) + +ros_depends=() +depends=( + ${ros_depends[@]} + ros-noetic-cpp-common + ros-noetic-pcl-ros +) + +source=( + $pkgname::git://github.com/koide3/ndt_omp.git + shared_ptr.patch::https://github.com/koide3/ndt_omp/pull/26.patch +) + +sha256sums=( + 'SKIP' + 'e0c0bc7c3a15b1431e674f75fa607f1592457a6093370abdc307ac834ceed4db' +) + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}/${pkgname}" + patch --forward --strip=1 --input="${srcdir}/shared_ptr.patch" +} + +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}/${pkgname} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCATKIN_ENABLE_TESTING=0 \ + -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 \ + -DCMAKE_CXX_STANDARD=17 +} + +package() { + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install +} |