# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=collectd-apk
pkgver=0.2.0
pkgrel=3
pkgdesc="Collectd plugin that collects information about APK packages"
url="https://github.com/jirutka/collectd-apk"
arch="all"
license="GPL-2.0-or-later"
depends="collectd>=5.12"
makedepends="
	apk-tools-dev
	collectd-dev
	json-c-dev
	"
source="https://github.com/jirutka/collectd-apk/archive/v$pkgver/collectd-apk-$pkgver.tar.gz
	gcc14.patch
	"

build() {
	make
}

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
f161c2d5abc055f58143531481d4b7d912e24581fe4fa9e38cf1e9e6c7b5f9370da89947c16f94f297f14042e915982331cef95bc2c17a3eb62df894049f574f  collectd-apk-0.2.0.tar.gz
49ecead29dfc7a73f1a8307587c61a6fe3f8f590dc961cada0e65b10aa5009c96fe3a222dc59742c2e0556e8c2af51c02af1e9f091a49d999ef13d3908e0a4db  gcc14.patch
"
