[arch-commits] Commit in opensubdiv/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Sat Sep 26 01:54:00 UTC 2015


    Date: Saturday, September 26, 2015 @ 03:54:00
  Author: svenstaro
Revision: 141620

upgpkg: opensubdiv 3.0.2-1

Pushing opensubdiv

Modified:
  opensubdiv/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-26 01:18:17 UTC (rev 141619)
+++ PKGBUILD	2015-09-26 01:54:00 UTC (rev 141620)
@@ -7,21 +7,32 @@
 url="http://graphics.pixar.com/opensubdiv"
 license=('apache')
 depends=(zlib ptex intel-tbb)
-makedepends=(cmake doxygen glfw glew python-pygments python-docutils)
-source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver/./_}.tar.gz")
-md5sums=()
+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")
+md5sums=('acee9de1cd966ad3b4e7297858cff6d6')
 
+prepare() {
+    cd "OpenSubdiv-${pkgver//./_}"
+
+    find . -name \*.py | xargs sed -i "s/env python/env python2/g"
+}
+
 build() {
-	cd "$pkgname-$pkgver"
+    cd "OpenSubdiv-${pkgver//./_}"
 
     rm -rf build
     mkdir build && cd build
-	
-    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
+
+    cmake .. \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_PREFIX=/usr
 }
 
 package() {
-	cd "$pkgname-$pkgver"/build
+    cd "OpenSubdiv-${pkgver//./_}"/build
 
-	make DESTDIR="$pkgdir/" install
+    make DESTDIR="$pkgdir/" install
+
+    rm -rf ${pkgdir}/usr/bin
 }



More information about the arch-commits mailing list