community/blender to 2.81.a-4

This commit is contained in:
Kevin Mihelich 2020-01-16 13:52:30 +00:00
parent 48bef806b9
commit 21eb1cad40

View file

@ -17,13 +17,17 @@ buildarch=8
# or simply roll with a new version. I usually choose the latter when the former seems
# unreasonable.
# For legal reasons, we can't separately package the Optix headers so we'll
# just build the package against them. I checked with NVIDIA and this way is
# fine with them.
_gittag=v2.81a
# _gitcommit=054dbb833e15275e0e991e2c15e754a3e7583716
pkgname=blender
pkgver=2.81.a
[[ -n $_gitcommit ]] && pkgver=${pkgver}.git1.${_gitcommit:0:8}
pkgrel=3
pkgrel=4
epoch=17
pkgdesc="A fully integrated 3D graphics creation suite"
arch=('x86_64')
@ -39,7 +43,8 @@ options=(!strip)
source=("git://git.blender.org/blender-addons.git"
"git://git.blender.org/blender-addons-contrib.git"
"git://git.blender.org/blender-translations.git"
"git://git.blender.org/blender-dev-tools.git")
"git://git.blender.org/blender-dev-tools.git"
https://developer.download.nvidia.com/redist/optix/v7.0/OptiX-7.0.0-include.zip)
if [[ -n $_gittag ]]; then
source+=("${pkgname}-${pkgver}::git://git.blender.org/blender.git#tag=${_gittag}")
elif [[ -n $_gitcommit ]]; then
@ -49,6 +54,7 @@ sha512sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'b2cff73def3757d4259f4b4d318a8ccfe166bf7c215cbb2124f1c81bd6e742f96207285b24eb4d99b527b7b97dc6d5e8fdf2f16d78d5d1e2684c26d681328491'
'SKIP')
prepare() {
@ -70,6 +76,7 @@ build() {
cmake \
-GNinja \
-C../build_files/cmake/config/blender_release.cmake .. \
-DOPTIX_ROOT_DIR="$srcdir"/include \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_INSTALL_PORTABLE=OFF \