summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD38
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..64df562ef83
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = embree2
+ pkgdesc = A collection of high-performance ray tracing kernels. Version 2
+ pkgver = 2.17.7
+ pkgrel = 1
+ url = https://embree.github.io/
+ arch = x86_64
+ license = Apache
+ makedepends = cmake
+ makedepends = ispc
+ makedepends = freeglut
+ makedepends = libxmu
+ makedepends = openexr
+ depends = intel-tbb
+ provides = embree-isa=2.17.7
+ provides = embree=2.17.7
+ replaces = embree-isa=2.17.7
+ replaces = embree<=2.17.7
+ source = embree-2.17.7.tar.gz::https://github.com/embree/embree/archive/v2.17.7.tar.gz
+ sha256sums = c0694f287fa1fbb382aba3a895702e248d92f7e89c0e5f64aefee965482ec04c
+
+pkgname = embree2
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..dffd6804db2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.pkg*
+embree*/*
+src/*
+pkg/*
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
+}
+