diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-10 14:51:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-10 14:59:57 +0000 |
commit | 28fdc5d08e4d6e4230ffe276a166c4b1dbba7c12 (patch) | |
tree | b4af91df7cb66df28ad4e5f73f167f8e4ba242aa /main/vigra | |
parent | 038debf34a8ce27968b6690127c2d3c44c789273 (diff) | |
download | aports-28fdc5d08e4d6e4230ffe276a166c4b1dbba7c12.tar.bz2 aports-28fdc5d08e4d6e4230ffe276a166c4b1dbba7c12.tar.xz |
main/vigra: moved to main
Diffstat (limited to 'main/vigra')
-rw-r--r-- | main/vigra/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/main/vigra/APKBUILD b/main/vigra/APKBUILD new file mode 100644 index 0000000000..07ef6804db --- /dev/null +++ b/main/vigra/APKBUILD @@ -0,0 +1,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" |