summaryrefslogtreecommitdiff
path: root/community/openimageio/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/openimageio/PKGBUILD')
-rw-r--r--community/openimageio/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/openimageio/PKGBUILD b/community/openimageio/PKGBUILD
new file mode 100644
index 000000000..63285dd4b
--- /dev/null
+++ b/community/openimageio/PKGBUILD
@@ -0,0 +1,44 @@
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+
+_pkg=OpenImageIO
+pkgname=openimageio
+pkgver=0.10.4
+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/$_pkg/oiio/tarball/Release-${pkgver/_/-}")
+md5sums=('08a1bc2b82862ad5547bba569f4f633f')
+
+build() {
+ cd "$srcdir"/$_pkg*
+
+ # remove insecure rpath
+ sed -i "/RPATH/d" src/CMakeLists.txt
+
+ make
+}
+
+package() {
+ cd "$srcdir"/$_pkg*/dist/*
+
+ # prepare dirs
+ install -d "$pkgdir"/usr/{share/doc/$_pkg,lib/python2.7/site-packages}
+
+ # bin
+ cp -r bin include lib "$pkgdir/usr"
+
+ # docs
+ cp -r doc/* "$pkgdir/usr/share/doc/$_pkg"
+
+ # python module
+ cp -r python/* "$pkgdir/usr/lib/python2.7/site-packages"
+
+ # license
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}