summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD40
2 files changed, 18 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 466767a4ab0..f5176af3ed3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = opencolorio-git
pkgdesc = A color management framework for visual effects and animation
- pkgver = 1.0.8.r572.gd71748bf
+ pkgver = 1.0.8.r586.gbc88857f
pkgrel = 1
url = https://opencolorio.org
arch = x86_64
@@ -8,6 +8,7 @@ pkgbase = opencolorio-git
makedepends = boost
makedepends = cmake
makedepends = git
+ makedepends = ninja
makedepends = pybind11
makedepends = python
depends = freeglut
@@ -20,6 +21,7 @@ pkgbase = opencolorio-git
optdepends = python: python bindings
provides = opencolorio
conflicts = opencolorio
+ conflicts = opencolorio1
source = git+https://github.com/AcademySoftwareFoundation/OpenColorIO
sha512sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 0f28f95e5f2..d568ea244f6 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: