PKGBUILDs/community/opencolorio/PKGBUILD

49 lines
1.7 KiB
Bash
Raw Normal View History

2021-02-01 18:49:57 +00:00
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
# Contributor: Dumitru Ursu <dima@ceata.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix 32-bit ARM FTBFS
pkgname=opencolorio
pkgver=2.0.0
2021-04-28 14:15:50 +00:00
pkgrel=3
2021-02-01 18:49:57 +00:00
pkgdesc="A color management framework for visual effects and animation"
arch=('x86_64')
url="https://opencolorio.org"
license=('BSD')
2021-04-28 14:15:50 +00:00
depends=('freeglut' 'glew' 'lcms2' 'tinyxml' 'yaml-cpp' 'imath' 'pystring')
2021-02-01 18:49:57 +00:00
makedepends=('boost' 'cmake' 'python' 'pybind11' 'ninja')
optdepends=('python: python bindings')
source=($pkgname-$pkgver.tar.gz::https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v$pkgver.tar.gz
2021-04-28 14:11:54 +00:00
opencolorio-openexr3.patch
2021-02-01 18:49:57 +00:00
0001-remove-duplicate-ProcessorCache-declaration.patch)
sha512sums=('7110a1a30a5fa64b81d7fc5e33234673aaddbad5e19ce7f21436c590edd7d2ce767650c9a934011a96e53132c030bd0b654fcf93ad79c1bfc8c050762c57f6d0'
2021-04-28 14:11:54 +00:00
'269a86e4020d272b64af631ba01f9b1e644bde119e9bfb1d5ec3fd62579d5d3f7ab31295fb6cffc51d7349c469e2ca6e12f69310317266eda602541e9fcff94f'
2021-02-01 18:49:57 +00:00
'204c51ebf446e5fe83a9fa094b6037f1a5c0bb5240395176bed52f6b9f3082c3df13a4dc2589a924e1084ceea0692af9dd95a01d9461cd7d3bff511c66aba648')
prepare() {
2021-04-28 14:11:54 +00:00
patch -d OpenColorIO-$pkgver -p1 < opencolorio-openexr3.patch
2021-02-01 18:49:57 +00:00
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: