[arch-commits] Commit in opensubdiv/repos (2 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Jul 1 20:56:59 UTC 2019


    Date: Monday, July 1, 2019 @ 20:56:58
  Author: svenstaro
Revision: 487204

archrelease: copy trunk to community-staging-x86_64

Added:
  opensubdiv/repos/community-staging-x86_64/
  opensubdiv/repos/community-staging-x86_64/PKGBUILD
    (from rev 487203, opensubdiv/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: opensubdiv/repos/community-staging-x86_64/PKGBUILD (from rev 487203, opensubdiv/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-07-01 20:56:58 UTC (rev 487204)
@@ -0,0 +1,38 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+pkgname=opensubdiv
+pkgver=3.4.0
+pkgrel=1
+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