summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2019-02-17 20:43:16 +0100
committerbartus2019-02-17 20:43:16 +0100
commit4cd5921bf185996607a8f8164e22600629fa405a (patch)
treed4f412a90d8c507c5ba00b9b1c4ac186b5f84930
downloadaur-4cd5921bf185996607a8f8164e22600629fa405a.tar.gz
init
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD44
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0f45ad2a264
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = oidn
+ pkgdesc = Intel(R) Open Image Denoise library
+ pkgver = 0.8.1
+ pkgrel = 1
+ url = http://www.openimagedenoise.org/
+ arch = x86_64
+ license = Apache
+ makedepends = git
+ makedepends = cmake
+ depends = intel-tbb
+ source = oidn::git+https://github.com/OpenImageDenoise/oidn.git#tag=v0.8.1
+ source = git+https://github.com/OpenImageDenoise/mkl-dnn.git
+ source = git+https://github.com/OpenImageDenoise/oidn-weights.git
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = oidn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ca627abc067
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
+pkgname=oidn
+pkgver=0.8.1
+_fragment="#tag=v${pkgver}"
+pkgrel=1
+pkgdesc="Intel(R) Open Image Denoise library"
+arch=('x86_64')
+url="http://www.openimagedenoise.org/"
+license=('Apache')
+depends=(intel-tbb)
+makedepends=(git cmake)
+source=("${pkgname}::git+https://github.com/OpenImageDenoise/oidn.git${_fragment}"
+ "git+https://github.com/OpenImageDenoise/mkl-dnn.git"
+ "git+https://github.com/OpenImageDenoise/oidn-weights.git"
+ )
+md5sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
+
+prepare() {
+ cd ${srcdir}/${pkgname}
+ git config submodule.mkl-dnn.url ${srcdir}/mkl-dnn
+ git config submodule.weights.url ${srcdir}/oidn-weights
+ git submodule update --init --recursive # --remote
+}
+
+#pkgver() {
+# cd ${srcdir}/${pkgname}
+# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+#}
+
+build() {
+ cd ${srcdir}
+ mkdir -p build && cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr/ ../${pkgname}
+ make
+}
+
+package() {
+ cd ${srcdir}/build
+ make install DESTDIR=${pkgdir}
+}
+
+# vim:set ts=2 sw=2 et: