upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / libigl / repos / community-any / PKGBUILD
blobeaaea0bad86e9d0799b20c8d696c04a8230e9701
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Christian Pfeiffer <cpfeiffer@live.de>
4 pkgname=libigl
5 pkgver=2.4.0
6 pkgrel=3
7 pkgdesc='Simple C++ geometry processing library'
8 arch=(any)
9 url=https://github.com/libigl/libigl
10 depends=(eigen)
11 makedepends=(
12   cmake
13   git
14   ninja
16 license=(GPL3)
17 _tag=66b3ef2253e765d0ce0db74cec91bd706e5ba176
18 source=(git+https://github.com/libigl/libigl.git#tag=${_tag})
19 b2sums=(SKIP)
21 build() {
22   cmake -S libigl -B build -G Ninja \
23     -DCMAKE_BUILD_TYPE=None \
24     -DCMAKE_INSTALL_PREFIX=/usr \
25     -DFETCHCONTENT_SOURCE_DIR_EIGEN=/usr/include/eigen3 \
26     -DFETCHCONTENT_UPDATES_DISCONNECTED=ON \
27     -DLIBIGL_BUILD_TESTS=OFF \
28     -DLIBIGL_BUILD_TUTORIALS=OFF \
29     -DLIBIGL_COPYLEFT_CGAL=OFF \
30     -DLIBIGL_COPYLEFT_COMISO=OFF \
31     -DLIBIGL_COPYLEFT_TETGEN=OFF \
32     -DLIBIGL_EMBREE=OFF \
33     -DLIBIGL_GLFW=OFF \
34     -DLIBIGL_IMGUI=OFF \
35     -DLIBIGL_OPENGL=OFF \
36     -DLIBIGL_PNG=OFF \
37     -DLIBIGL_PREDICATES=OFF \
38     -DLIBIGL_RESTRICTED_MATLAB=OFF \
39     -DLIBIGL_RESTRICTED_MOSEK=OFF \
40     -DLIBIGL_RESTRICTED_TRIANGLE=OFF \
41     -DLIBIGL_USE_STATIC_LIBRARY=OFF \
42     -DLIBIGL_XML=OFF
43   cmake --build build
46 package() {
47   DESTDIR="${pkgdir}" cmake --install build
48   rm -rf "${pkgdir}"/usr/{include/Eigen,lib/cmake/eigen}
51 # vim: ts=2 sw=2 et: