updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / mcelog / PKGBUILD
blobaba059923d97cd404de569847b03deb8205509f0
1 # Contributor: Thomas Mudrunka <harvie@@email..cz>
2 # Maintainer: Thomas Mudrunka <harvie@@email..cz>
3 # You can also contact me on http://blog.harvie.cz/
5 pkgname=mcelog
6 pkgver=1.0pre3
7 pkgrel=2
8 pkgdesc="Print machine check event log from x86-64 kernel"
9 url="http://freshmeat.net/projects/mcelog/"
10 license="GPL"
11 arch=('i686' 'x86_64')
12 depends=()
13 source=("ftp://ftp.kernel.org/pub/linux/utils/cpu/mce/${pkgname}-${pkgver}.tar.gz"
14         "${pkgname}.rc")
15 md5sums=('b42f2214de6f4feb992556149edc67fa'
16          'f039a77d7bde3518d3d695b144816e8a')
18 build() {
19         cd "${srcdir}/${pkgname}-${pkgver}"
20         make
22         mkdir -p "${pkgdir}/usr/sbin/"
23         cp mcelog "${pkgdir}/usr/sbin/"
24         cp mcelog.cron "${pkgdir}/usr/sbin/"
26         mkdir -p "${pkgdir}/etc/rc.d/"
27         cp "${srcdir}/mcelog.rc" "${pkgdir}/etc/rc.d/mcelog"
29         chmod -R 755 "${pkgdir}/"