[arch-commits] Commit in opensubdiv/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Tue Oct 15 16:41:43 UTC 2019
Date: Tuesday, October 15, 2019 @ 16:41:42
Author: arojas
Revision: 516192
archrelease: copy trunk to community-staging-x86_64
Added:
opensubdiv/repos/community-staging-x86_64/
opensubdiv/repos/community-staging-x86_64/PKGBUILD
(from rev 516191, opensubdiv/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: opensubdiv/repos/community-staging-x86_64/PKGBUILD (from rev 516191, opensubdiv/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-15 16:41:42 UTC (rev 516192)
@@ -0,0 +1,38 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+pkgname=opensubdiv
+pkgver=3.4.0
+pkgrel=2
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv"
+license=('apache')
+depends=(zlib ptex intel-tbb libxcursor xorg-xrandr libxinerama)
+makedepends=(cmake doxygen glfw glew python2 python-pygments python-docutils opencl-headers)
+#makedepends_x86_64=(cuda) Broken currently :/
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz")
+sha512sums=('b80311aebd74e0c5ce4d185e1baf3626b2a14e9ca113ce7346f06d7506832a7ccdc0e3731c468fa1ebe890099847e808981dfe051bd2ee85fd4dc53c1f10c28c')
+
+prepare() {
+ cd "OpenSubdiv-${pkgver//./_}"
+
+ find . -name \*.py | xargs sed -i "s/env python/env python2/g"
+}
+
+build() {
+ cd "OpenSubdiv-${pkgver//./_}"
+
+ rm -rf build
+ mkdir build && cd build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+}
+
+package() {
+ cd "OpenSubdiv-${pkgver//./_}"/build
+
+ make DESTDIR="$pkgdir/" install
+
+ rm -rf ${pkgdir}/usr/bin
+}
More information about the arch-commits
mailing list