PKGBUILDs/extra/opencolorio/PKGBUILD

51 lines
1.4 KiB
Bash
Raw Normal View History

2023-12-24 16:45:39 +00:00
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Dumitru Ursu <dima@ceata.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - added -fsigned-char to CXXFLAGS
pkgname=opencolorio
2024-10-10 17:05:21 +00:00
pkgver=2.4.0
2024-11-13 00:22:22 +00:00
pkgrel=2
2023-12-24 16:45:39 +00:00
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' 'minizip-ng' 'openexr')
makedepends=('cmake' 'python' 'pybind11' 'ninja')
checkdepends=('openimageio')
optdepends=('python: python bindings')
source=($pkgname-$pkgver.tar.gz::https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v$pkgver.tar.gz)
2024-10-10 17:05:21 +00:00
sha512sums=('11ad89b3ac30700be58181a0bdd4154a3ae2bf59651edb48629c51c7f1fadf221394abb285efd9b6c259195821a4e531043b266eea36d8fa4382f23c3b54ab6d')
2023-12-24 16:45:39 +00:00
build() {
cd OpenColorIO-$pkgver
CXXFLAGS+=" -ffat-lto-objects -fsigned-char"
cmake \
-GNinja \
-Bbuild \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_SKIP_INSTALL_RPATH=YES \
-Wno-dev
ninja -C build
}
check() {
cd OpenColorIO-$pkgver/build
2024-04-01 03:37:39 +00:00
# Currently broken
# ctest -E test_gpu
2023-12-24 16:45:39 +00:00
}
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: