desktop/openimageio/PKGBUILD
2014-04-13 14:27:09 +00:00

44 lines
1.1 KiB
Bash

# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
pkgname=openimageio
_pkgname=OpenImageIO
pkgver=1.3.11
pkgrel=1
_release=1548a68
pkgdesc="A library for reading and writing images, including classes, utilities, and applications."
arch=(x86_64)
url="http://www.openimageio.org/"
license=('custom')
depends=('openexr' 'boost-libs' 'jasper' 'glew' 'libtiff' 'opencolorio' 'intel-tbb')
makedepends=('cmake' 'qt4' 'python2' 'boost' 'mesa')
optdepends=('qt: iv image viewer'
'python2: bindings support')
source=("https://github.com/OpenImageIO/oiio/tarball/Release-${pkgver}")
sha1sums=('8c53d259903c3c00853070fd0dfbb9d4be140c9b')
build() {
cd "$srcdir"/$_pkgname-oiio-$_release
[[ -d build ]] && rm -r build
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPYLIB_INSTALL_DIR=usr/lib/python2.7/site-packages \
-DUSE_EXTERNAL_TBB=ON \
-DOIIO_BUILD_TESTS=OFF \
..
make
}
package() {
cd "$srcdir"/$_pkgname-oiio-$_release/build
make DESTDIR=$pkgdir install
# license
cd ..
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}