summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorxDShot2019-05-07 18:12:52 +0300
committerxDShot2019-05-07 18:12:52 +0300
commitfc9215f441b8956f83a428c1ecb134cdd6ed1cb7 (patch)
tree42fa3f757417376c2d095377b4bcdac0d8279b73 /PKGBUILD
downloadaur-fc9215f441b8956f83a428c1ecb134cdd6ed1cb7.tar.gz
Initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6797c2e4e38
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Maintainer: Bruno Pagani <archange@archlinux.org>
+
+_pkgname=embree
+pkgver=2.17.7
+pkgname=${_pkgname}2
+pkgrel=1
+pkgdesc="A collection of high-performance ray tracing kernels. Version 2"
+arch=('x86_64')
+url="https://embree.github.io/"
+license=('Apache')
+depends=('intel-tbb')
+makedepends=('cmake' 'ispc' 'freeglut' 'libxmu' 'openexr')
+provides=("embree-isa=${pkgver}" "$_pkgname=${pkgver}" )
+replaces=("embree-isa=${pkgver}" "$_pkgname<=${pkgver}" )
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/embree/embree/archive/v${pkgver}.tar.gz")
+sha256sums=('c0694f287fa1fbb382aba3a895702e248d92f7e89c0e5f64aefee965482ec04c')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ cmake . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DEMBREE_TUTORIALS=OFF \
+ -DEMBREE_MAX_ISA="AVX512SKX"
+ # Embree detects actual ISA at runtime
+ make
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ #prevent collision with official embree package
+ rm ${pkgdir}/usr/lib/libembree.so
+}
+