archrelease: copy trunk to extra-x86_64
[arch-packages.git] / edac-utils / trunk / PKGBUILD
blob04f05f730c1ee66968ce834df98b36995184f119
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 # Contributor: drrossum <youremail@domain.com>
3 pkgname=edac-utils
4 pkgver=0.18
5 pkgrel=3
6 pkgdesc="Userspace helper for Linux kernel EDAC drivers"
7 arch=(x86_64)
8 url='https://github.com/grondo/edac-utils'
9 license=('GPL2')
10 makedepends=('git')
11 depends=('perl' 'sysfsutils' 'dmidecode')
12 backup=('etc/edac/labels.db')
13 source=(git+https://github.com/grondo/edac-utils.git#tag=${pkgver}
14         edac.service)
16 build() {
17   cd "$srcdir/$pkgname"
18   ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --mandir=/usr/share/man --infodir=/usr/share/info
19   make
22 package() {
23   cd "$srcdir/$pkgname"
24   make DESTDIR="$pkgdir/" install
25   # remove initscript
26   rm -r "$pkgdir"/etc/init.d
27   # add systemd service file
28   install -D -m644 "$srcdir"/edac.service "$pkgdir"/usr/lib/systemd/system/edac.service
30 sha512sums=('SKIP'
31             '1c960e41b6f723803e53b36cb25341d5ec1d7f9fa9bfde6fe0580fbdc6e94b76b2faa056bb723c7ae42e1484e5137bac51b8c88710b869d490384c9f9a06efb2')