[arch-commits] Commit in openshadinglanguage/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Fri Oct 18 19:18:44 UTC 2019
Date: Friday, October 18, 2019 @ 19:18:44
Author: arojas
Revision: 516978
archrelease: copy trunk to community-staging-x86_64
Added:
openshadinglanguage/repos/community-staging-x86_64/
openshadinglanguage/repos/community-staging-x86_64/PKGBUILD
(from rev 516977, openshadinglanguage/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: openshadinglanguage/repos/community-staging-x86_64/PKGBUILD (from rev 516977, openshadinglanguage/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-18 19:18:44 UTC (rev 516978)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+pkgname=openshadinglanguage
+pkgver=1.10.7
+pkgrel=2
+pkgdesc="Advanced shading language for production GI renderers"
+arch=(x86_64)
+url="https://github.com/imageworks/OpenShadingLanguage"
+license=('custom')
+depends=('boost-libs' 'openimageio' 'openexr' 'intel-tbb' 'freetype2' 'libpng'
+ 'libtiff' 'zlib' 'ncurses')
+makedepends=('boost' 'cmake' 'python' 'llvm' 'clang')
+source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz)
+sha512sums=('3d6e2f6f6c04bd70f347b37c0d0f56291a9c03222c3418e0f87e87112e2ac05c50b65e772835709491c750093d693a6ba834cd0fafe3d80017051a51511ecd68')
+
+prepare() {
+ mkdir OpenShadingLanguage-Release-$pkgver/src/build
+}
+
+build() {
+ cd OpenShadingLanguage-Release-$pkgver/src/build
+
+ cmake ../.. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DLLVM_STATIC=0 \
+ -DENABLERTTI=ON \
+ -DSTOP_ON_WARNING=OFF
+ make
+}
+
+package() {
+ cd OpenShadingLanguage-Release-$pkgver/src/build
+
+ make DESTDIR="$pkgdir/" install
+ mkdir "$pkgdir"/usr/share/OSL
+ mv "$pkgdir"/usr/shaders "$pkgdir"/usr/share/OSL/shaders
+
+ install -Dm644 "$pkgdir"/usr/share/doc/OSL/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list