archrelease: copy trunk to extra-x86_64
[arch-packages.git] / irqbalance / repos / extra-x86_64 / PKGBUILD
blobe3c34a6fd09d27371c498e0d81af16c200f43545
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 options=(debug)
16 source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz)
17 sha512sums=('d0fb157fbfc096fa9cfb4562e51fd4c3f4fa8788f72377c58b27df67c70073b787bba05e39809dcbe17532bb5b8e74b6d27c5e5b3d9af09bc9ce1a9b6aab9378')
18 b2sums=('bc640323c3a594090f77983e63d9b7df177a05b859e4d29edb5b654f886c9e9f0d748ce22b1323bee443ea8369e014b9e0ce383bfe6f396692346649199d10a2')
20 prepare() {
21   # fix location of configuration and binary in service
22   sed -e 's|/path/to/|/etc/|g;s|/usr/sbin|/usr/bin|g' -i $pkgname-$pkgver/misc/$pkgname.service
24   cd $pkgname-$pkgver
25   autoreconf -fiv
28 build() {
29   cd $pkgname-$pkgver
30   ./configure \
31     --prefix=/usr \
32     --sbindir=/usr/bin \
33     --with-systemd
34   make
37 check() {
38   make -k check -C $pkgname-$pkgver
41 package() {
42   depends+=(libglib-2.0.so libcap-ng.so libncursesw.so libnuma.so libsystemd.so)
44   cd $pkgname-$pkgver
45   make install DESTDIR="$pkgdir"
46   install -vDm 644 misc/irqbalance.service -t "$pkgdir/usr/lib/systemd/system/"
47   install -vDm 644 misc/irqbalance.env -t "$pkgdir/etc/"
48   install -vDm 644 {AUTHORS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"