summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..458bf7f7596
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
+# shellcheck disable=SC2034
+# vim:set sw=2 ts=2 et:
+
+_name=UncertaintyTE
+pkgname=uncertainty-framework
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="Uncertainty estimation framework for a surface from motion dataset"
+arch=('i686' 'x86_64')
+url="http://alicevision.github.io/"
+license=('MPL2')
+groups=()
+conflicts=()
+provides=()
+depends=(magma ceres-solver)
+makedepends=(boost cmake git gflags cuda)
+source=("${_name}::git+https://github.com/alicevision/${_name}.git"
+ "ctest.patch")
+sha256sums=('SKIP'
+ 'abf50924a78ec9628212c5b7086592d302155cf50dcc6f4c49a92d57b9a3b020')
+
+_CMAKE_FLAGS=( -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release )
+_CMAKE_FLAGS+=( -DMAGMA_ROOT=/opt/magma )
+_CMAKE_FLAGS+=( -DUNC_ALICEVISION_SUPPORT=ON -DUNC_BUILD_TESTS=ON -DUNC_MKL_SUPPORT=ON )
+# test if we can build matlab module
+pacman -Qq matlab && _CMAKE_FLAGS+=( -DUNC_MATLAB_SUPPORT=ON -DUNC_BUILD_MEX=ON )
+
+prepare() {
+ cd ${srcdir}/${_name}
+ git apply -v ${srcdir}/*.patch
+}
+
+pkgver() {
+ grep -oP "VERSION \K.*(?=\))" <(pcregrep -Mo -e '(?s)^PROJECT.*?\)' ${srcdir}/${_name}/CMakeLists.txt)
+}
+
+build() {
+ cd ${srcdir}
+ mkdir -p build && cd build
+ cmake --trace --debug ${_CMAKE_FLAGS[*]} ${srcdir}/${_name}
+ make all
+}
+
+
+package() {
+ cd ${srcdir}/build
+ make DESTDIR=${pkgdir} install
+}
+
+check() {
+ cd ${srcdir}/build/src
+ ctest
+}