PKGBUILDs/extra/irqbalance/PKGBUILD

45 lines
1.3 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
2019-02-20 00:44:59 +00:00
pkgver=1.5.0
pkgrel=1
2014-09-12 13:23:10 +00:00
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')
2019-02-20 00:44:59 +00:00
depends=('glib2' 'libcap-ng' 'systemd-libs')
2017-12-18 19:08:38 +00:00
makedepends=('systemd')
2015-12-15 01:42:26 +00:00
source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz
2019-02-20 00:44:59 +00:00
config.patch)
sha1sums=('bb8c786b1aae73679016ae0bbbb7c7dbc488be64'
'32e5650f37c64531e69f477959b0c3598acc2825')
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
2018-06-07 12:55:34 +00:00
patch -p1 < ../d88f69c09f5517655272a3ab10e7f86b3d7e99f4.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
2017-12-20 23:57:47 +00:00
# Disable udev rule until we clarify it FS#56785
# install -D -m644 misc/90-irqbalance.rules "$pkgdir"/usr/lib/udev/rules.d/90-irqbalance.rules
2014-09-12 13:23:10 +00:00
}