summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 15 insertions, 25 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0f28f95e5f26..d568ea244f69 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,52 +1,42 @@
# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
-# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
# Contributor: Dumitru Ursu <dima@ceata.org>
-_pkgname=OpenColorIO
-pkgname=${_pkgname,,}-git
-pkgver=1.0.8.r572.gd71748bf
+pkgname=opencolorio-git
+pkgver=1.0.8.r586.gbc88857f
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' 'openexr' 'pystring' 'tinyxml' 'yaml-cpp')
-makedepends=('boost' 'cmake' 'git' 'pybind11' 'python')
+makedepends=('boost' 'cmake' 'git' 'ninja' 'pybind11' 'python')
optdepends=('python: python bindings')
provides=('opencolorio')
-conflicts=('opencolorio')
+conflicts=('opencolorio' 'opencolorio1')
source=("git+https://github.com/AcademySoftwareFoundation/OpenColorIO")
sha512sums=('SKIP')
pkgver() {
- cd "$_pkgname"
+ cd OpenColorIO
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
-prepare(){
- mkdir -p $_pkgname/build
- sed -i '/Global CMake options/ a find_package(Threads REQUIRED)' $_pkgname/CMakeLists.txt
-}
-
build() {
- cd $_pkgname/build
+ cd OpenColorIO
- cmake .. \
- -DCMAKE_BUILD_TYPE=Release \
+ cmake \
+ -GNinja \
+ -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
- -DOCIO_BUILD_APPS=OFF \
- -DOCIO_BUILD_TESTS=OFF \
- -DOCIO_BUILD_GPU_TESTS=OFF
- make
+ -DCMAKE_DISABLE_FIND_PACKAGE_OpenImageIO=TRUE
+ ninja -C build
}
package() {
- cd "$_pkgname"/build
+ cd OpenColorIO
- make DESTDIR="$pkgdir" install
-
- install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ DESTDIR="$pkgdir" ninja -C build install
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
-
-# vim:set ts=2 sw=2 et: