PKGBUILDs/community/opensubdiv/PKGBUILD
2021-02-18 15:00:51 +00:00

47 lines
1.4 KiB
Bash

# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove makedepend on cuda
pkgname=opensubdiv
pkgver=3.4.3
pkgrel=5
pkgdesc="An Open-Source subdivision surface library"
arch=(x86_64)
url="http://graphics.pixar.com/opensubdiv"
license=('APACHE')
depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama')
makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 'python-docutils' 'opencl-headers')
source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz"
python3.patch
cuda9.patch)
sha512sums=('44fd1361d9e7f48c3fa84f3420ed34743571220602aefb082a42f769ca5b8e9ac21907ce8714f6e3a2caadd75adae03c535a1949a8e6450dfea9ae7a2247cfc2'
'035a6691080e9ec1a6eb5e4a7746f3f0ba6caea4b74c1bfededdc477b701431456b026ee75dbf7ca03fabd6526f62e9181c616a62304f26e614474577b96fcc7'
'fe51160959f71f33e3c8008158f9f98c3c7a065b22360e7719ec1d262105b35d02c2c2f64f05acee58281c938a007a88054dcc07f1aef89908e6dbf4e3e3ab6f')
prepare() {
cd "OpenSubdiv-${pkgver//./_}"
patch -Np1 -i "${srcdir}"/python3.patch
patch -Np1 -i "${srcdir}"/cuda9.patch
mkdir build
}
build() {
cd "OpenSubdiv-${pkgver//./_}"/build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "OpenSubdiv-${pkgver//./_}"/build
DESTDIR="$pkgdir/" make install
rm -rf "${pkgdir}"/usr/bin
}