# Contributor: SpepS # Maintainer: Sven-Hendrik Haase pkgname=openimageio pkgver=2.0.6 pkgrel=0 pkgdesc="A library for reading and writing images, including classes, utilities, and applications" arch=(x86_64) url="http://www.openimageio.org/" license=('custom') depends=('openexr' 'boost-libs' 'jasper' 'glew' 'libtiff' 'opencolorio' 'intel-tbb' 'openssl' 'libpng') makedepends=('cmake' 'qt5-base' 'python' 'boost' 'mesa' 'git' 'freetype2' 'fontconfig' 'libxrender') optdepends=('qt5-base: iv image viewer' 'python: bindings support') source=(git+git://github.com/OpenImageIO/oiio.git#tag=Release-${pkgver}) md5sums=('SKIP') build() { # Replicating the oiio build script cd oiio #[[ -d build ]] && rm -r build #mkdir build && cd build cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -g3 -DSELF_CONTAINED_INSTALL_TREE:BOOL=TRUE \ -DUSE_PYTHON:BOOL=ON \ -DPYTHON_VERSION:STRING=3.7.2 \ -DUSE_OPENVDB:BOOL=OFF \ -DUSE_CPP=17 \ -DUSE_LIBCPLUSPLUS:BOOL=ON \ -DUSE_SIMD:STRING=sse2,ssse3,sse4.1,sse4.2,f16c,avx2 \ -DOIIO_BUILD_TESTS:BOOL=OFF \ ../ make } package() { cd oiio/build make DESTDIR="$pkgdir" install # license #cd .. #install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }