summaryrefslogtreecommitdiff
path: root/community/openimageio/PKGBUILD
blob: 837fbf18305085d84f43ab165c3826074e4b9e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id: PKGBUILD 67891 2012-03-15 20:13:49Z svenstaro $
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

_pkg=OpenImageIO
pkgname=openimageio
pkgver=1.0.1
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')
options=(!buildflags)
source=("https://github.com/$_pkg/oiio/tarball/Release-${pkgver/_/-}")
md5sums=('5b74d7bda23f4b0e33c5104fd8dbdf79')

build() {
  cd "$srcdir"/$_pkg*

  # strange bug on i686, see https://github.com/OpenImageIO/oiio/issues/204
  [[ $CARCH == "i686" ]] && make debug || 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"

  pwd
  cd ../..
  # license
  pwd
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}