# Template file for 'mcelog'
pkgname=mcelog
version=179
revision=1
archs="i686* x86_64*"
conf_files="/etc/mcelog/mcelog.conf"
short_desc="Decode kernel machine check log on x86 machines"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only"
homepage="http://www.mcelog.org/"
distfiles="https://github.com/andikleen/${pkgname}/archive/v${version}.tar.gz"
checksum=35b8c7686c1064c7f382b58d9992869b7434030cd994a2bbe1c5e846ec8b5ec7

do_build() {
	make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" ${makejobs}
}

do_install() {
	vmkdir usr/share/man/man5
	vmkdir usr/share/man/man8
	make PREFIX=/usr DESTDIR=${DESTDIR} install
	mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin
	vsv mcelog
}
