1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Thomas Mudrunka <harvie@@email..cz>
3 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
9 pkgdesc="Print machine check event log from x86-64 kernel"
10 url="https://git.kernel.org/cgit/utils/cpu/mce/mcelog.git"
15 backup=('etc/mcelog/mcelog.conf')
16 source=("git+https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git#tag=v$pkgver")
21 sed -i 's|sbin|bin|g' Makefile mcelog.cron mcelog.service
31 mkdir -p "$pkgdir"/usr/share/doc/mcelog
32 make install DESTDIR="$pkgdir"
33 install -Dm0755 mcelog.cron "${pkgdir}/usr/bin/mcelog.cron"
34 install -Dm0644 mcelog.logrotate "${pkgdir}/etc/logrotate.d/mcelog.logrotate"
35 install -Dm0644 README.md *.pdf "${pkgdir}/usr/share/doc/mcelog/"
36 install -Dm0644 mcelog.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service