desktop/openimageio/PKGBUILD

41 lines
1011 B
Bash
Raw Normal View History

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
pkgname=openimageio
_pkgname=OpenImageIO
2013-07-27 18:38:30 +08:00
pkgver=1.2.0
pkgrel=1
pkgdesc="A library for reading and writing images, including classes, utilities, and applications."
2013-07-27 18:38:30 +08:00
arch=(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}")
2013-07-27 18:38:30 +08:00
sha1sums=('a64980cdae4df8d23c0e0591963fdd7bbe3ad1f8')
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"
2013-07-27 18:38:30 +08:00
}