# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icinga-php-thirdparty
pkgver=0.12.1
pkgrel=0
pkgdesc="Bundle for all 3rd party PHP libraries used by Icinga Web products"
url="https://github.com/Icinga/icinga-php-thirdparty"
arch="noarch !armhf !armv7 !s390x !x86"
license="MIT"
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/icinga-php-thirdparty/archive/refs/tags/v$pkgver.tar.gz"

package() {
	install -dm755 "$pkgdir"/usr/share/icinga-php
	cp -rT . "$pkgdir"/usr/share/icinga-php/vendor
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
1cc5ea8238eae6dd9a0a14cd898532d10dd2a44fb17072d113da9c32b2d383dc6970a1f55e7badac060f4fcee683b7ad1aef3268d37fd462bcd2bff2eb1f4298  icinga-php-thirdparty-0.12.1.tar.gz
"
