2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Thomas Mudrunka <harvie@@email..cz>
4 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
5 # Maintainer: Dmitry Nosachev <quartz64@gmail.com>
10 pkgdesc="Print machine check event log from x86-64 kernel"
11 url="http://mcelog.org/"
13 arch=('i686' 'x86_64')
18 _gitroot="https://github.com/andikleen/mcelog"
20 md5sums=('f039a77d7bde3518d3d695b144816e8a')
24 msg "Connecting to GIT server...."
26 if [[ -d "$_gitname" ]]; then
27 cd "$_gitname" && git pull origin
28 msg "The local files are updated."
30 git clone "$_gitroot" "$_gitname"
33 msg "GIT checkout done or server timeout"
34 msg "Starting build..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
44 cd "$srcdir/$_gitname-build"
46 mkdir -p $pkgdir/usr/share/doc/mcelog
47 make install prefix=$pkgdir/usr etcprefix=$pkgdir DOCDIR=$pkgdir/usr/share/doc/mcelog
48 install -Dm0755 mcelog.cron "${pkgdir}/usr/sbin/mcelog.cron"
49 install -Dm0755 "${srcdir}/mcelog.rc" "${pkgdir}/etc/rc.d/mcelog"
50 install -Dm0644 mcelog.logrotate "${pkgdir}/etc/logrotate.d/mcelog.logrotate"
51 install -Dm0644 README "${pkgdir}/usr/share/doc/mcelog/README"