# Maintainer: Sven-Hendrik Haase # Contributor: Dumitru Ursu # ALARM: Kevin Mihelich # - patch to fix 32-bit ARM FTBFS pkgname=opencolorio pkgver=2.0.1 pkgrel=1 pkgdesc="A color management framework for visual effects and animation" arch=('x86_64') url="https://opencolorio.org" license=('BSD') depends=('freeglut' 'glew' 'lcms2' 'tinyxml' 'yaml-cpp' 'imath' 'pystring') makedepends=('cmake' 'python' 'pybind11' 'ninja') optdepends=('python: python bindings') source=($pkgname-$pkgver.tar.gz::https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v$pkgver.tar.gz opencolorio-openexr3.patch 0001-remove-duplicate-ProcessorCache-declaration.patch) sha512sums=('5787cc4cadb0a1832c925712ca0dfef6e843082b9461460e1798326c6fceaa97bee78e5298651e6a8a3662b348eab5ab9791e94c3efcac337da07229fb559338' '269a86e4020d272b64af631ba01f9b1e644bde119e9bfb1d5ec3fd62579d5d3f7ab31295fb6cffc51d7349c469e2ca6e12f69310317266eda602541e9fcff94f' '204c51ebf446e5fe83a9fa094b6037f1a5c0bb5240395176bed52f6b9f3082c3df13a4dc2589a924e1084ceea0692af9dd95a01d9461cd7d3bff511c66aba648') prepare() { patch -d OpenColorIO-$pkgver -p1 < opencolorio-openexr3.patch cd OpenColorIO-$pkgver patch -p1 -i ../0001-remove-duplicate-ProcessorCache-declaration.patch } build() { cd OpenColorIO-$pkgver cmake \ -GNinja \ -Bbuild \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib ninja -C build } package() { cd OpenColorIO-$pkgver DESTDIR="$pkgdir" ninja -C build install install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } # vim:set ts=2 sw=2 et: