# Maintainer : bartus pkgname=openmvs-git pkgver=0.7.r65.gd19dae8 pkgrel=1 pkgdesc="open Multi-View Stereo reconstruction library with simple and automatic set of tools" arch=('i686' 'x86_64') url="http://cdcseacave.github.io/openMVS" license=('GPL') depends=('glew' 'glfw' 'suitesparse' 'blas' 'google-glog' 'opencv' 'boost-libs') makedepends=('git' 'cmake' 'cuda' 'boost' 'gflags' 'eigen' 'ceres-solver' 'cgal' 'nvidia-utils') optdepends=('nvidia-utils: GPU optimized mesh reconstruction code' ) options=() source=("${pkgname}::git+https://github.com/cdcseacave/openMVS.git" "vcglib::git+https://github.com/cdcseacave/VCG.git" ) md5sums=('SKIP' 'SKIP' ) pkgver() { cd "$pkgname" # cutting off 'v' prefix that presents in the git tag git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } #prepare() { # cd ${srcdir}/${pkgname} #} build() { cd ${srcdir} mkdir -p build cd build cmake ../${pkgname} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_BIN_DIR=/usr/bin -DVCG_DIR="../vcglib" make } package() { cd "$srcdir/build" make DESTDIR="$pkgdir/" install } # vim:set ts=2 sw=2 et: