desktop/openimageio/PKGBUILD

44 lines
1.1 KiB
Bash
Raw Normal View History

pkgname=openimageio
pkgver=1.6.16
2017-01-19 04:21:03 +08:00
pkgrel=2
pkgdesc="A library for reading and writing images, including classes, utilities, and applications."
arch=('x86_64')
url="http://www.openimageio.org/"
license=('custom')
2016-03-16 05:11:50 +08:00
depends=('openexr' 'boost-libs' 'jasper' 'glew' 'libtiff' 'opencolorio' 'intel-tbb'
'ffmpeg' 'openssl' 'libraw' 'openjpeg' 'libwebp')
makedepends=('cmake' 'qt' 'python2' 'boost' 'mesa')
optdepends=('qt: iv image viewer'
2017-01-19 04:21:03 +08:00
'python2: bindings support'
'ttf-droid: font support')
source=("https://github.com/OpenImageIO/oiio/archive/Release-$pkgver.tar.gz")
sha1sums=('688e1716d9660fd8d14e48105a2a207eeddc30e3')
build() {
cd oiio-Release-$pkgver
[[ -d build ]] && rm -r build
mkdir build && cd build
2014-04-13 22:27:09 +08:00
cmake \
-DUSE_OPENSSL=ON \
2014-04-13 22:25:03 +08:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DPYLIB_INSTALL_DIR=lib/python2.7/site-packages \
2014-04-13 22:25:03 +08:00
-DOIIO_BUILD_TESTS=OFF \
..
make
}
package() {
cd oiio-Release-$pkgver/build
2014-06-10 07:15:48 +08:00
make DESTDIR="$pkgdir" install
2017-01-19 04:21:03 +08:00
# remove font from package
rm -rf "$pkgdir/usr/share/fonts/"
# license
2014-04-13 22:25:03 +08:00
cd ..
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2013-07-27 18:38:30 +08:00
}