# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=icingaweb2-module-director _module=${pkgname/*-/} pkgver=1.7.1 pkgrel=0 pkgdesc="Configuration frontend for Icinga 2, integrated automation" url="http://www.icinga.org" arch="noarch !armhf !armv7 !s390x" license="GPL-2.0" _php=php7 depends="icingaweb2 ${_php}-curl" options="!check" pkggroups="icingaweb2" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" return 0 } package() { cd "$builddir" mkdir -p "$pkgdir/etc/icingaweb2/modules/$_module" mkdir -p "$pkgdir/usr/share/doc/$pkgname" mkdir -p "$pkgdir/usr/share/webapps/icingaweb2/modules/$_module" mkdir -p "$pkgdir/usr/share/webapps/icingaweb2/modules/$_module/contrib" cp -a application library public schema test \ configuration.php module.info run.php \ "$pkgdir/usr/share/webapps/icingaweb2/modules/$_module" cp -a contrib/*-agent-installer \ "$pkgdir/usr/share/webapps/icingaweb2/modules/$_module/contrib" cp -a doc "$pkgdir/usr/share/doc/$pkgname" chgrp -R $pkggroups "$pkgdir/etc/icingaweb2/modules/$_module" cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <