abuild: add install_if for -doc packages

This lets users 'apk add docs' to always pull in -doc packages.
This commit is contained in:
Natanael Copa 2015-07-20 14:10:36 +00:00
parent 05df0f6df0
commit 3020891009
1 changed files with 1 additions and 0 deletions

View File

@ -1391,6 +1391,7 @@ default_doc() {
depends="$depends_doc"
pkgdesc="$pkgdesc (documentation)"
arch=${arch_doc:-"noarch"}
install_if="docs $pkgname=$pkgver-r$pkgrel"
local i
for i in doc man info html sgml licenses gtk-doc ri help; do