blob: cc028f6bf531b9c87a10f3d08b46e90178055668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
#!/hint/bash
# Maintainer : bartus <arch-user-repo(at)bartus.33mail.com>
# Contributor : Danilo Bargen <aur at dbrgn dot ch>
# Contributor : Johannes Sauer <joh.sauer(at)gmail(dot)com>
# shellcheck disable=SC2034,SC2154
name=cloudcompare
#_fragment="#branch="
pkgname=${name}-git
pkgver=2.10.2.r561.gd15c435b
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' 'qt5-tools' 'qt5-svg' 'glu' 'glew' 'mesa' 'vxl' 'ffmpeg' 'cgal' 'pdal')
makedepends=('git' 'cmake' 'ninja' 'pcl' 'libharu' 'proj' 'python' 'doxygen' 'laz-perf')
optdepends=('pcl')
conflicts=('cloudcompare')
provides=('cloudcompare')
source=("${name}::git+https://github.com/CloudCompare/CloudCompare.git${_fragment}"
CloudCompare.desktop
ccViewer.desktop
constexpr.patch
)
md5sums=('SKIP'
'379e09f6996b2b397429c0661c409bd0'
'b6dcb0dee15cc67011166a2fc774c5ef'
'456526b717c1b47d52990df8f06a04e0')
prepare() {
git -C "${name}" submodule update --init --recursive
git -C "${name}" apply -v "${srcdir}"/constexpr.patch
}
pkgver() {
git -C "${name}" describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
mkdir -p build
cmake -S "${name}" -B build \
-G Ninja \
-Wno-dev \
-DCMAKE_CXX_FLAGS=-fpermissive \
-DOPTION_PDAL_LAS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DINSTALL_QRANSAC_SD_PLUGIN=ON \
-DINSTALL_QCOMPASS_PLUGIN=ON \
-DINSTALL_QPCL_PLUGIN=ON \
-DINSTALL_QBLUR_PLUGIN=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCOMPILE_CC_CORE_LIB_WITH_CGAL=ON \
-DINSTALL_QHPR_PLUGIN=ON \
-DINSTALL_QPOISSON_RECON_PLUGIN=ON \
-DPOISSON_RECON_WITH_OPEN_MP=ON \
-DINSTALL_QEDL_PLUGIN=ON \
-DINSTALL_QSRA_PLUGIN=ON \
-DOPTION_USE_GDAL=ON \
-DOPTION_USE_DXF_LIB=ON \
-DINSTALL_QSSAO_PLUGIN=ON \
-DINSTALL_QGMMREG_PLUGIN=ON \
-DINSTALL_QANIMATION_PLUGIN=ON \
-DINSTALL_QCSF_PLUGIN=ON \
-DINSTALL_QPHOTOSCAN_IO_PLUGIN=ON \
-DWITH_FFMPEG_SUPPORT=ON \
-DFFMPEG_INCLUDE_DIR=/usr/include \
-DFFMPEG_LIBRARY_DIR=/usr/lib/ \
-DINSTALL_QFACETS_PLUGIN=ON \
-DOPTION_USE_SHAPE_LIB=ON \
-DINSTALL_QPCV_PLUGIN=ON \
-DINSTALL_QM3C2_PLUGIN=ON \
-DINSTALL_QBROOM_PLUGIN=true \
-DINSTALL_QHOUGH_NORMALS_PLUGIN=true \
-DEIGEN_ROOT_DIR=/usr/include/eigen3
ninja -C build "${MAKEFLAGS:--j1}"
}
package() {
DESTDIR="$pkgdir" ninja -C build install
# install *.desktop files
install -D -m 644 "${srcdir}"/*.desktop -t "${pkgdir}"/usr/share/applications/
# copy icons for *.desktop files
# shellcheck disable=SC2164
cd "${name}"
for size in 16 32 64 256; do
install -D -m 644 qCC/images/icon/cc_icon_${size}.png "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/cc_icon.png
install -D -m 644 qCC/images/icon/cc_viewer_icon_${size}.png "${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/cc_viewer_icon.png
done
install -D -m 644 qCC/images/icon/cc_icon.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/cc_icon.svg
install -D -m 644 qCC/images/icon/cc_viewer_icon.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/cc_viewer_icon.svg
}
# vim:set sw=2 ts=2 et:
|