diff options
author | Achmad Fathoni | 2021-05-11 19:28:13 +0700 |
---|---|---|
committer | Achmad Fathoni | 2021-05-11 19:28:13 +0700 |
commit | 9469fdca0ad4129dd4244c213908652929f81e86 (patch) | |
tree | f33b7ffd8909779bde72aa0d624b06e6b2ce3c60 | |
download | aur-9469fdca0ad4129dd4244c213908652929f81e86.tar.gz |
Tidy up PKGBUILD
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 73 |
2 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ea47a41aa00c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = ros-noetic-fast-gicp-cuda-git + pkgdesc = OpenMP boosted NDT and GICP algorithms with CUDA enabled + pkgver = r125.e1f0863 + pkgrel = 1 + url = https://github.com/SMRT-AIST/fast_gicp + arch = i686 + arch = x86_64 + arch = aarch64 + arch = armv7h + arch = armv6h + license = BSD-3-Clause License + makedepends = cmake + makedepends = ros-build-tools + depends = pcl + depends = cuda + depends = eigen + optdepends = openmp + provides = ros-noetic-fast-gicp + source = ros-noetic-fast-gicp-cuda-git::git://github.com/SMRT-AIST/fast_gicp + source = nvbio::https://github.com/NVlabs/nvbio/archive/9bb7e6363c65f65e46f21df09bef98e404250f10.tar.gz + source = CMakeLists.patch::https://github.com/SMRT-AIST/fast_gicp/pull/50.patch + sha256sums = SKIP + sha256sums = d8208f7044ab26f8b9dc87898a0265c57346d171375e9e4d8669807cada955cb + sha256sums = SKIP + +pkgname = ros-noetic-fast-gicp-cuda-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5eebbba410e4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: Achmad Fathoni<fathoni.id(at)gmail.com> + +pkgdesc="OpenMP boosted NDT and GICP algorithms with CUDA enabled" +url='https://github.com/SMRT-AIST/fast_gicp' + +pkgname='ros-noetic-fast-gicp-cuda-git' +pkgver=r125.e1f0863 +arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h') +pkgrel=1 +license=('BSD-3-Clause License') +provides=(${pkgname::-9}) +cuda=ON #compile with CUDA support + +makedepends=( + cmake + ros-build-tools +) + +optdepends=( + openmp +) + +depends=( + pcl + cuda + eigen +) + +source=( + $pkgname::git://github.com/SMRT-AIST/fast_gicp + nvbio::https://github.com/NVlabs/nvbio/archive/9bb7e6363c65f65e46f21df09bef98e404250f10.tar.gz + CMakeLists.patch::https://github.com/SMRT-AIST/fast_gicp/pull/50.patch +) + +sha256sums=( + 'SKIP' + 'd8208f7044ab26f8b9dc87898a0265c57346d171375e9e4d8669807cada955cb' + 'SKIP' +) + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare(){ + cd $srcdir + mv -n nvbio-9bb7e6363c65f65e46f21df09bef98e404250f10/* $pkgname/thirdparty/nvbio + cd $pkgname + patch --forward --strip=1 --input="${srcdir}/CMakeLists.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 + + # Build project + cmake -Wno-dev -B build -S ${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 \ + -DSETUPTOOLS_DEB_LAYOUT=OFF \ + -DBUILD_VGICP_CUDA=$cuda \ + -DCMAKE_CXX_STANDARD=17 +} + +package() { + cd build + make DESTDIR="${pkgdir}/" install +} |