# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=icingaweb2-module-generictts _module=${pkgname/*-/} pkgver=2.0.0 pkgrel=0 pkgdesc="Generic ticket system integration into Icinga web 2" url="http://www.icinga.org" arch="noarch !armhf !ppc64le" license="GPL2" _php=php5 depends="icingaweb2-module-director" 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" cp -a application library public module.info run.php configuration.php \ "$pkgdir/usr/share/webapps/icingaweb2/modules/$_module" chgrp -R $pkggroups "$pkgdir/etc/icingaweb2/modules/$_module" cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <