summaryrefslogtreecommitdiff
path: root/community-testing/openimageio/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/openimageio/PKGBUILD')
-rw-r--r--community-testing/openimageio/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community-testing/openimageio/PKGBUILD b/community-testing/openimageio/PKGBUILD
new file mode 100644
index 000000000..5a2e49e6a
--- /dev/null
+++ b/community-testing/openimageio/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 73765 2012-07-15 13:19:33Z ibiru $
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+pkgname=openimageio
+pkgver=1.0.6
+pkgrel=1
+pkgdesc="A library for reading and writing images, including classes, utilities, and applications."
+arch=(i686 x86_64)
+url="http://www.openimageio.org/"
+license=('custom')
+depends=('openexr' 'boost-libs' 'jasper' 'glew')
+makedepends=('cmake' 'qt' 'python2' 'boost')
+optdepends=('qt: iv image viewer'
+ 'python2: bindings support')
+source=(https://github.com/OpenImageIO/oiio/tarball/Release-$pkgver)
+md5sums=('fa6e3f4be98d8e1868b389410b56563a')
+
+build() {
+ cd "$srcdir"/$_pkgname*/src
+
+ [[ -d build ]] && rm -r build
+ mkdir build && cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "$srcdir"/$_pkgname*/src/build
+
+ make DESTDIR=$pkgdir install
+
+ mv $pkgdir/usr/lib/python $pkgdir/usr/lib/python2.7
+
+ # license
+ cd ../..
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}