void-packages/srcpkgs/mcelog/template

25 lines
710 B
Bash

# Template file for 'mcelog'
pkgname=mcelog
version=162
revision=1
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
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=875e98572e86240ea319ab1f69ee6d744eb8b73ac5d700e474f6410d0f52d3fc
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
}