upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / uncertainty-framework / trunk / PKGBUILD
blob44fe66928b2952b8c95efce8d6ea8a4be1fd0ccf
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor : bartus <arch-user-repoᘓbartus.33mail.com>
3 _name=UncertaintyTE
4 pkgname=uncertainty-framework
5 pkgver=1.2.0
6 pkgrel=5
7 pkgdesc="Uncertainty estimation framework for a surface from motion dataset"
8 arch=('x86_64')
9 url="http://alicevision.github.io/"
10 license=('MPL2')
11 depends=('magma' 'ceres-solver')
12 makedepends=('boost' 'cmake' 'ninja' 'git' 'gflags' 'cuda' 'pcre')
13 source=("${_name}::git+https://github.com/alicevision/${_name}.git#commit=d995765"
14         "ctest.patch")
15 sha256sums=('SKIP'
16             'abf50924a78ec9628212c5b7086592d302155cf50dcc6f4c49a92d57b9a3b020')
18 prepare() {
19   cd ${srcdir}/${_name}
20   git apply -v ${srcdir}/ctest.patch
23 pkgver() {
24   grep -oP "VERSION \K.*(?=\))" <(pcregrep -Mo -e '(?s)^PROJECT.*?\)' ${srcdir}/${_name}/CMakeLists.txt)
27 build() {
28   cd ${_name}
29   cmake \
30     -Bbuild \
31     -GNinja \
32     -DCMAKE_INSTALL_PREFIX=/usr \
33     -DCMAKE_BUILD_TYPE=None \
34     -DMAGMA_ROOT=/usr \
35     -DUNC_BUILD_TESTS=ON \
36     -DUNC_MKL_SUPPORT=ON
37   ninja -C build
41 package() {
42   cd ${_name}
43   DESTDIR=${pkgdir} ninja -C build install
46 check() {
47   cd ${_name}/build/src
48   ctest
51 # vim:set sw=2 ts=2 et: