PKGBUILDs/community/opencolorio/PKGBUILD

49 lines
1.6 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
2021-05-15 18:32:41 +00:00
pkgver=2.0.1
pkgrel=1
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-05-15 18:32:41 +00:00
makedepends=('cmake' 'python' 'pybind11' 'ninja')
2021-02-01 18:49:57 +00:00
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)
2021-05-15 18:32:41 +00:00
sha512sums=('5787cc4cadb0a1832c925712ca0dfef6e843082b9461460e1798326c6fceaa97bee78e5298651e6a8a3662b348eab5ab9791e94c3efcac337da07229fb559338'
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: