# $Id: PKGBUILD 201267 2013-12-07 10:35:07Z bpiotrowski $ # Maintainer: AndyRTR # Contributor: Lukas Jirkovsky pkgbase=vigra pkgname=('vigra' 'vigra-doc') pkgver=1.9.0 pkgrel=8 arch=('i686' 'x86_64') url="http://hci.iwr.uni-heidelberg.de/vigra/" license=('custom:MIT') makedepends=(# runtime deps 'libpng' 'libtiff' 'openexr' 'gcc-libs' 'sh' 'hdf5' 'fftw' # additional makedeps 'cmake' 'python2-nose' 'doxygen' 'python2-sphinx' 'boost' 'python2-numpy') source=(http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/${pkgname}-${pkgver}-src.tar.gz) md5sums=('b6155afe1ea967917d2be16d98a85404') build() { cd "${srcdir}"/${pkgbase}-${pkgver} cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DPYTHON_EXECUTABLE=/usr/bin/python2 \ -DWITH_OPENEXR=true \ -DWITH_VIGRANUMPY=1 \ -DDOCINSTALL=share/doc make } check() { cd "${srcdir}"/${pkgname}-${pkgver} make -k check || /bin/true # i686 fails } package_vigra() { pkgdesc="Computer vision library" depends=('libpng' 'libtiff' 'openexr' 'gcc-libs' 'sh' 'hdf5' 'fftw') optdepends=('python2: for python bindings' 'boost-libs: for python bindings') cd "${srcdir}"/${pkgbase}-${pkgver} make DESTDIR="${pkgdir}" install # license install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE # remove doc rm -rf "${pkgdir}"/usr/share/doc #fix shebang for python2 sed -i 's|python$|python2|' "$pkgdir"/usr/bin/vigra-config } package_vigra-doc() { pkgdesc="Computer vision library - documentation and examples" #depends=('vigra') #arch=('any') cd "${srcdir}"/${pkgbase}-${pkgver} make DESTDIR="${pkgdir}" install # cleanup rm -rf "${pkgdir}"/usr/{bin,include,lib} # license install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }