diff --git a/srcpkgs/vigra/template b/srcpkgs/vigra/template index 09ffcff4f2a..e9f949b520e 100644 --- a/srcpkgs/vigra/template +++ b/srcpkgs/vigra/template @@ -1,11 +1,11 @@ # Template file for 'vigra' pkgname=vigra version=1.11.1 -revision=5 +revision=6 wrksrc="${pkgname}-Version-${version//./-}" build_style=cmake configure_args="-DWITH_OPENEXR=1" -hostmakedepends="python" +hostmakedepends="python3" makedepends="libpng-devel tiff-devel libjpeg-turbo-devel zlib-devel fftw-devel boost-devel libopenexr-devel" short_desc="Image processing and analysis library" @@ -14,7 +14,7 @@ license="MIT" homepage="https://ukoethe.github.io/vigra/" distfiles="https://github.com/ukoethe/vigra/archive/Version-${version//./-}.tar.gz" checksum=b2718250d28baf1932fcbe8e30f7e4d146e751ad0e726e375a72a0cdb4e3250e -python_version=2 #unverified +python_version=3 pre_configure() { if [ "$CROSS_BUILD" ]; then @@ -28,10 +28,11 @@ post_install() { vlicense LICENSE.txt vmkdir usr/share/$pkgname mv $DESTDIR/usr/doc $DESTDIR/usr/share/$pkgname/doc + vsed -i -e "s,/buildir/.*doc,/usr/share/$pkgname/doc," \ + $DESTDIR/usr/bin/vigra-config } vigra-doc_package() { - archs=noarch depends="vigra>=${version}_${revision}" short_desc+=" - documentation" pkg_install() { @@ -40,7 +41,8 @@ vigra-doc_package() { } vigra-devel_package() { - depends="vigra>=${version}_${revision} $makedepends" + # vigra-config is python script + depends="vigra>=${version}_${revision} $makedepends python3" short_desc+=" - development files" pkg_install() { vmove usr/bin