# # Chakra Packages for Chakra, part of chakra-project.org # # maintainer abveritas@chakra-project.org pkgname=openimageio _pkgname=OpenImageIO pkgver=1.0.2 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=('1663f74956c88efe41e7be7e99de2fd9') 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" }