mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 21:47:13 +08:00
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
#
|
|
# Chakra Packages, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=vigra
|
|
pkgver=1.8.0
|
|
pkgrel=1
|
|
pkgdesc="Computer vision library"
|
|
arch=('x86_64')
|
|
url="http://hci.iwr.uni-heidelberg.de/vigra/"
|
|
license=('custom:MIT')
|
|
depends=('libpng' 'libtiff' 'gcc-libs' 'sh' 'hdf5' 'fftw')
|
|
makedepends=('cmake' 'python-nose' 'doxygen' 'python-sphinx' 'boost' 'python-numpy')
|
|
optdepends=('python2: for python bindings'
|
|
'boost-libs: for python bindings')
|
|
options=('!libtool')
|
|
source=("http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/${pkgname}-${pkgver}-src.tar.gz"
|
|
'vigra-1.7.1.gcc460.patch')
|
|
md5sums=('15c5544448e529ee60020758ab6be264'
|
|
'25ef8bc26bc38ee67e5b512d2acd0166')
|
|
|
|
build() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
patch -p1 -i ${srcdir}/vigra-1.7.1.gcc460.patch
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
|
|
-DWITH_VIGRANUMPY=0 \
|
|
-DDOCINSTALL=share/doc
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
make -k check || /bin/true
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
# license
|
|
install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|