blob: 07ef6804dbfac0fcaf510b02faa7c745df7f0be5 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer:
pkgname=vigra
pkgver=1.10.0
pkgrel=0
pkgdesc="An image processing and analysis library"
url="http://ukoethe.github.io/vigra/"
arch="all"
license="MIT"
depends=""
depends_dev="tiff-dev libjpeg-turbo-dev libpng-dev boost-dev"
makedepends="$depends_dev cmake doxygen"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/ukoethe/vigra/releases/download/Version-1-10-0/vigra-$pkgver-src-with-docu.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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 "$kgdir"/usr/lib/cmake
mv "$pkgdir"/usr/lib/vigra "$pkgdir"/usr/lib/cmake
}
md5sums="85e2968e4ee5f9541b5dd8b3fb9cc433 vigra-1.10.0-src-with-docu.tar.gz"
sha256sums="42d4a361b0bb52fbfdae7e76000698be04dabba77be3f4248d369139fe96a099 vigra-1.10.0-src-with-docu.tar.gz"
sha512sums="4c0edb9d5a05d341034b6fe504658525130ddf830b09af4e08d9080407dd10ec62355bed362c4876cb1504632202a5eb125dc50cb66b0617c28dd274b8367d4d vigra-1.10.0-src-with-docu.tar.gz"
|