archrelease: copy trunk to community-any
[ArchLinux/community.git] / mcelog / trunk / PKGBUILD
blobe26fa9d7a2e32ea97878d6839fe0ff4d017878fb
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Thomas Mudrunka <harvie@@email..cz>
3 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
5 pkgname=mcelog
6 epoch=1
7 pkgver=153
8 pkgrel=1
9 pkgdesc="Print machine check event log from x86-64 kernel"
10 url="https://git.kernel.org/cgit/utils/cpu/mce/mcelog.git"
11 license=("GPL")
12 arch=('x86_64')
13 makedepends=('git')
14 options=('docs')
15 backup=('etc/mcelog/mcelog.conf')
16 source=("git+https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git#tag=v$pkgver")
17 sha256sums=('SKIP')
19 prepare() {
20   cd "${srcdir}/mcelog"
21   sed -i 's|sbin|bin|g' Makefile mcelog.cron mcelog.service
24 build() {
25   cd "${srcdir}/mcelog"
26   make
29 package() {
30   cd "${srcdir}/mcelog"
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