archrelease: copy trunk to extra-x86_64
[arch-packages.git] / opencolorio / trunk / PKGBUILD
blobbf8e846b5553ff99c16baf8bb9b7f4437b92e3cd
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Dumitru Ursu <dima@ceata.org>
4 pkgname=opencolorio
5 pkgver=2.2.1
6 pkgrel=7
7 pkgdesc="A color management framework for visual effects and animation"
8 arch=('x86_64')
9 url="https://opencolorio.org"
10 license=('BSD')
11 depends=('freeglut' 'glew' 'lcms2' 'tinyxml' 'yaml-cpp' 'imath' 'pystring' 'minizip-ng' 'openexr')
12 makedepends=('cmake' 'python' 'pybind11' 'ninja')
13 checkdepends=('openimageio')
14 optdepends=('python: python bindings')
15 source=($pkgname-$pkgver.tar.gz::https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v$pkgver.tar.gz)
16 sha512sums=('d5f3a4b5bd661af7336c015d07e0feccb286464a08239a3c259a97217001161e7571f5137475fc2f4d1b9af6381bbfa03c0b60f41de282f114307961b8d84fc9')
18 build() {
19   cd OpenColorIO-$pkgver
21   CXXFLAGS+=" -ffat-lto-objects"
22   cmake \
23     -GNinja \
24     -Bbuild \
25     -DCMAKE_BUILD_TYPE=Release \
26     -DCMAKE_INSTALL_PREFIX=/usr \
27     -DCMAKE_INSTALL_LIBDIR=lib \
28     -DCMAKE_SKIP_INSTALL_RPATH=YES \
29     -Wno-dev
30   ninja -C build
33 check() {
34   cd OpenColorIO-$pkgver/build
36   ctest -E test_gpu
39 package() {
40   cd OpenColorIO-$pkgver
42   DESTDIR="$pkgdir" ninja -C build install
43   install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
46 # vim:set ts=2 sw=2 et: