void-packages/srcpkgs/mcelog/template

25 lines
760 B
Bash

# Template file for 'mcelog'
pkgname=mcelog
version=151
revision=1
conf_files="/etc/mcelog/mcelog.conf"
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
short_desc="Decode kernel machine check log on x86 machines"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="http://www.mcelog.org/"
_changelog="https://github.com/andikleen/mcelog/releases"
distfiles="https://github.com/andikleen/${pkgname}/archive/v${version}.tar.gz"
checksum=a98268d782c66bcb3c657b81038871a47d6c841f4a5322471c7def88e33eb9f8
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
}