PKGBUILDs/extra/irqbalance/PKGBUILD

42 lines
1.1 KiB
Bash
Raw Normal View History

2014-09-12 13:23:10 +00:00
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Martin Striz <ms@poruba.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - removed dependency on numactl
pkgname=irqbalance
2017-12-18 19:08:38 +00:00
pkgver=1.3.0
2014-09-12 13:23:10 +00:00
pkgrel=1
pkgdesc="IRQ balancing daemon for SMP systems"
2017-12-18 19:08:38 +00:00
arch=('x86_64')
2015-12-15 01:42:26 +00:00
url="https://github.com/Irqbalance/irqbalance"
2014-09-12 13:23:10 +00:00
license=('GPL')
2017-12-18 19:08:38 +00:00
backup=('etc/irqbalance.env')
depends=('glib2' 'libcap-ng' 'libsystemd')
makedepends=('systemd')
2015-12-15 01:42:26 +00:00
source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz
2017-12-18 19:08:38 +00:00
config.patch)
sha1sums=('2797747812d65fcfa83d7e3610857e6326df933a'
'f5750dd9b53ef77c3dcb46ea70622c6c4d462888')
2016-01-08 01:59:12 +00:00
prepare() {
cd "$srcdir/$pkgname-$pkgver"
2017-12-18 19:08:38 +00:00
patch -p1 < ../config.patch
2016-01-08 01:59:12 +00:00
}
2014-09-12 13:23:10 +00:00
build() {
cd "$srcdir/$pkgname-$pkgver"
2014-09-12 13:29:04 +00:00
./autogen.sh
2017-12-18 19:08:38 +00:00
./configure --prefix=/usr --sbindir=/usr/bin --with-systemd
2014-09-12 13:23:10 +00:00
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make install DESTDIR="$pkgdir"
2017-12-18 19:08:38 +00:00
install -D -m644 misc/irqbalance.service "$pkgdir"/usr/lib/systemd/system/irqbalance.service
install -D -m644 misc/irqbalance.env "$pkgdir"/etc/irqbalance.env
install -D -m644 misc/90-irqbalance.rules "$pkgdir"/usr/lib/udev/rules.d/90-irqbalance.rules
2014-09-12 13:23:10 +00:00
}