summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d530821a24d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Tércio Martins <echo dGVyY2lvd2VuZGVsQGdtYWlsLmNvbQo= | base64 -d>
+# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Dumitru Ursu <dima@ceata.org>
+
+_pkgname=OpenColorIO
+pkgname=${_pkgname,,}-git
+pkgver=1.0.8.r542.g98321505
+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' 'yaml-cpp')
+makedepends=('boost' 'cmake' 'git' 'pybind11' 'python' 'tinyxml')
+optdepends=('python: python bindings')
+provides=('opencolorio')
+conflicts=('opencolorio')
+source=("git+https://github.com/AcademySoftwareFoundation/OpenColorIO")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
+}
+
+build() {
+ cd $_pkgname
+
+ mkdir -p build && cd build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DOCIO_INSTALL_EXT_PACKAGES=NONE
+ make
+}
+
+package() {
+ cd "$_pkgname"/build
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: