# Original Author: Johannes Sauer # Maintainer: Danilo Bargen pkgname=cloudcompare-git pkgver=2.5.0.r830.g3cd1c04 pkgrel=1 pkgdesc="A 3D point cloud (and triangular mesh) processing software" arch=('i686' 'x86_64') url="http://www.danielgm.net/cc/" license=('GPL2') depends=('qt5-base' 'glu' 'mesa') makedepends=('git' 'cmake' 'pcl' 'doxygen') source=("git+https://github.com/cloudcompare/trunk") md5sums=('SKIP') pkgver() { cd "$srcdir/trunk" git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } build() { cd "$srcdir/trunk" [[ -d build ]] && rm -r build mkdir -p build && cd build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_QPCL_PLUGIN_DOCUMENTATION=ON \ -DINSTALL_QPCL_PLUGIN=ON \ -DINSTALL_QSRA_PLUGIN=OFF \ -DINSTALL_QPOISSON_RECON_PLUGIN=OFF \ -DINSTALL_QHPR_PLUGIN=OFF \ -DINSTALL_QRANSAC_SD_PLUGIN=OFF \ -DINSTALL_QKINECT_PLUGIN=OFF \ -DINSTALL_QBLUR_PLUGIN=OFF \ -DINSTALL_QEDL_PLUGIN=OFF \ -DINSTALL_QPCV_PLUGIN=OFF \ -DINSTALL_QDUMMY_PLUGIN=OFF \ -DINSTALL_QSSAO_PLUGIN=OFF make -j$(nproc) } package() { cd "$srcdir/trunk/build" make DESTDIR="$pkgdir/" install }