# Template file for 'edac-utils'
pkgname=edac-utils
version=0.18
revision=1
build_style=gnu-configure
maintainer="Orphaned <orphan@voidlinux.eu>"
hostmakedepends=perl
makedepends=libsysfs-devel
license="GPL-2"
homepage="https://github.com/grondo/edac-utils"
short_desc="Userspace helper for kernel EDAC drivers"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=2a027dbde6c3095807c9fbfa0025bedad38fc839e9967707c1986089ff4c8750

post_install() {
	rm -r ${DESTDIR}/etc/init.d
	vsv edac
}

libedac_package() {
	short_desc+=" - library files"
	pkg_install() {
		vmove usr/lib/*.so.*
		vmove etc/edac/labels.db
	}
}

libedac-devel_package() {
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/lib/libedac.a
		vmove usr/lib/*.so
		vmove usr/include
		vmove usr/share/man/man3
	}
}
