summaryrefslogtreecommitdiff
path: root/extra/vigra/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/vigra/PKGBUILD')
-rw-r--r--extra/vigra/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/extra/vigra/PKGBUILD b/extra/vigra/PKGBUILD
new file mode 100644
index 000000000..88bd5696b
--- /dev/null
+++ b/extra/vigra/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 112123 2011-03-04 03:09:16Z eric $
+# Maintainer: AndyRTR <andyrtr@archlinux.org>
+# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+
+pkgname=vigra
+pkgver=1.7.0
+pkgrel=6
+pkgdesc="Computer vision library"
+arch=('i686' '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 libpng-1.4.patch)
+md5sums=('a40b3b013653f75dc84ba55b2df1fae2' 'db610e48558eb323490ad21d636bac76')
+sha1sums=('31875646cbb1928d93c96fc4da4fda31772cf8f6' '5f668c861f5fe927a4f51014afab94805db60c46')
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}-src
+ patch -p1 < ../libpng-1.4.patch
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DWITH_VIGRANUMPY=1 \
+ -DDOCINSTALL=share/doc
+ make
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}-src
+ make DESTDIR="${pkgdir}" install
+ # license
+ install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}