--- /dev/null
+# Contributor: Thomas Mudrunka <harvie@@email..cz>
+# Maintainer: Thomas Mudrunka <harvie@@email..cz>
+# You can also contact me on http://blog.harvie.cz/
+
+pkgname=mcelog
+pkgver=1.0pre3
+pkgrel=1
+pkgdesc="Print machine check event log from x86-64 kernel"
+url="http://freshmeat.net/projects/mcelog/"
+license="GPL"
+arch=('i686' 'x86_64')
+depends=()
+source=("ftp://ftp.kernel.org/pub/linux/utils/cpu/mce/${pkgname}-${pkgver}.tar.gz")
+md5sums=('b42f2214de6f4feb992556149edc67fa')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make
+
+ mkdir -p ${pkgdir}/usr/bin/
+ cp mcelog ${pkgdir}/usr/bin/
+ cp mcelog.cron ${pkgdir}/usr/bin/
+
+ mkdir -p ${pkgdir}/etc/rc.d/
+ cp mcelog.init ${pkgdir}/etc/rc.d/
+
+ chmod -R 755 ${pkgdir}/
+}