blob: 53d488744ffe58164c5dc33e588dde481f65e476 (
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
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer:
pkgname=vigra
pkgver=1.11.0
pkgrel=2
pkgdesc="An image processing and analysis library"
url="http://ukoethe.github.io/vigra/"
arch="all"
license="MIT"
depends_dev="tiff-dev libjpeg-turbo-dev libpng-dev boost-dev"
makedepends="$depends_dev cmake doxygen"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/ukoethe/vigra/releases/download/Version-${pkgver//./-}/vigra-$pkgver-src.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDOCINSTALL=share/doc \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir" || return 1
# relocate cmake include files
mkdir -p "$pkgdir"/usr/lib/cmake
mv "$pkgdir"/usr/lib/vigra "$pkgdir"/usr/lib/cmake
}
sha512sums="3cd8fcfc8ba9a1209a37e49c7b5cb0080bc665987805deec0b92cabf8c571c2f09ba47e2850c12204d04b3c830322fc8e47efa19fc537cf78708c22e1d302d6a vigra-1.11.0-src.tar.gz"
|