community/openimageio to 2.4.10.0-2

This commit is contained in:
Kevin Mihelich 2023-05-03 19:17:12 +00:00
parent 1a80a37378
commit db1b30a11d

View file

@ -7,7 +7,7 @@
pkgname=openimageio pkgname=openimageio
pkgver=2.4.10.0 pkgver=2.4.10.0
pkgrel=1 pkgrel=2
pkgdesc="A library for reading and writing images, including classes, utilities, and applications" pkgdesc="A library for reading and writing images, including classes, utilities, and applications"
arch=('x86_64') arch=('x86_64')
url="http://www.openimageio.org/" url="http://www.openimageio.org/"
@ -31,11 +31,12 @@ prepare() {
build() { build() {
cd oiio-$pkgver cd oiio-$pkgver
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
cmake \ cmake \
-Bbuild \ -Bbuild \
-GNinja \ -GNinja \
-DUSE_PYTHON=ON \ -DUSE_PYTHON=ON \
-DPYTHON_VERSION=3.10 \ -DPYTHON_VERSION=$python_version \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DOIIO_BUILD_TESTS=ON \ -DOIIO_BUILD_TESTS=ON \