db-move: moved nautilus from [testing] to [extra] (x86_64)
[arch-packages.git] / irqbalance / trunk / PKGBUILD
blob615cc495a81e14f2fe6cc7794a417df936fba1f4
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Dan McGee <dan@archlinux.org>
3 # Contributor: Martin Striz <ms@poruba.net>
5 pkgname=irqbalance
6 pkgver=1.9.2
7 pkgrel=1
8 pkgdesc="IRQ balancing daemon for SMP systems"
9 arch=(x86_64)
10 url="https://github.com/irqbalance/irqbalance"
11 license=(GPL2)
12 backup=(etc/$pkgname.env)
13 depends=(glibc libnl)
14 makedepends=(glib2 libcap-ng ncurses numactl systemd systemd-libs)
15 source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz)
16 sha512sums=('d0fb157fbfc096fa9cfb4562e51fd4c3f4fa8788f72377c58b27df67c70073b787bba05e39809dcbe17532bb5b8e74b6d27c5e5b3d9af09bc9ce1a9b6aab9378')
17 b2sums=('bc640323c3a594090f77983e63d9b7df177a05b859e4d29edb5b654f886c9e9f0d748ce22b1323bee443ea8369e014b9e0ce383bfe6f396692346649199d10a2')
19 prepare() {
20   # fix location of configuration and binary in service
21   sed -e 's|/path/to/|/etc/|g;s|/usr/sbin|/usr/bin|g' -i $pkgname-$pkgver/misc/$pkgname.service
23   cd $pkgname-$pkgver
24   autoreconf -fiv
27 build() {
28   cd $pkgname-$pkgver
29   ./configure \
30     --prefix=/usr \
31     --sbindir=/usr/bin \
32     --with-systemd
33   make
36 check() {
37   make -k check -C $pkgname-$pkgver
40 package() {
41   depends+=(libglib-2.0.so libcap-ng.so libncursesw.so libnuma.so libsystemd.so)
43   cd $pkgname-$pkgver
44   make install DESTDIR="$pkgdir"
45   install -vDm 644 misc/irqbalance.service -t "$pkgdir/usr/lib/systemd/system/"
46   install -vDm 644 misc/irqbalance.env -t "$pkgdir/etc/"
47   install -vDm 644 {AUTHORS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"