diff --git a/community/imagemagick/APKBUILD b/community/imagemagick/APKBUILD index 5839a455651b0fbd9652e896e7b5f90cb814f883..2b38a46982398271985f49dcdb7dbf0eec2aff3e 100644 --- a/community/imagemagick/APKBUILD +++ b/community/imagemagick/APKBUILD @@ -4,7 +4,7 @@ pkgname=imagemagick _pkgname=ImageMagick pkgver=7.1.1.32 -pkgrel=1 +pkgrel=2 _pkgver=${pkgver%.*}-${pkgver##*.} _abiver=7 pkgdesc="Collection of tools and libraries for many image formats" @@ -190,7 +190,7 @@ build() { --with-heic \ --with-modules \ --with-perl \ - --with-perl-options="INSTALL_BASE=/usr INSTALLDIRS=vendor" \ + --with-perl-options="INSTALLDIRS=vendor INSTALLVENDORARCH=/usr/lib/perl5/vendor_perl NO_PACKLIST=1 NO_PERLLOCAL=1" \ --with-png \ --with-rsvg \ --with-threads \ @@ -217,8 +217,9 @@ package() { # for the modules rm "$pkgdir"/usr/lib/*.la - find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \ - -o -name '*.bs' \) -delete + # perl installs man pages here, we make use of this wrong directory + # to isolate the perl man pages and move them in _perlmagick_doc() + gzip -9v "$pkgdir"/usr/man/man*/* } heic() { @@ -291,9 +292,10 @@ _perlmagick() { _perlmagick_doc() { pkgdesc="PerlMagick Perl Module Documentation for ImageMagick" - mkdir -p "$subpkgdir" - cd "$builddir"/PerlMagick - make DESTDIR="$subpkgdir" doc_vendor_install + install_if="docs $pkgname-perlmagick=$pkgver-r$pkgrel" + + mkdir -p "$subpkgdir"/usr/share + mv -v "$pkgdir"/usr/man "$subpkgdir"/usr/share/ } sha512sums="