From 26921c74ef0a07a2d88dff0022652ed868b114c8 Mon Sep 17 00:00:00 2001 From: Michael Kuc Date: Mon, 6 May 2019 19:36:34 +0100 Subject: [PATCH] Added variational-depth-from-focus. --- variational-depth-from-focus/PKGBUILD | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 variational-depth-from-focus/PKGBUILD diff --git a/variational-depth-from-focus/PKGBUILD b/variational-depth-from-focus/PKGBUILD new file mode 100644 index 0000000..a67796a --- /dev/null +++ b/variational-depth-from-focus/PKGBUILD @@ -0,0 +1,36 @@ +_pkgname=variational-depth-from-focus +pkgname="${_pkgname}-git" +pkgver=v1.0.0.r13.gb2a4bc3 +pkgrel=1 +pkgdesc="Implementation of \"Variational Depth from Focus Reconstruction\" [Moeller 2015]" +arch=('x86_64') +url="https://github.com/Crystalix007/variational-depth-from-focus" +license=('GPL2') +depends=('opencv' + 'cmake' + 'cuda') +provides=('variational-depth-from-focus') +epoch=1 +source=("${pkgname}::git+https://github.com/Crystalix007/variational-depth-from-focus.git") +sha256sums=("SKIP") + +pkgver() { + cd "${pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "${pkgname}" + cmake -DCMAKE_INSTALL_PREFIX=/usr . +} + +build() { + cd "${pkgname}" + make +} + +package() { + cd "${pkgname}" + make PREFIX=/usr DESTDIR="$pkgdir/" install + install -m644 -D README.md "$pkgdir/usr/share/doc/$pkgname/README.md" +}