2019-05-16 23:03:39 +00:00
|
|
|
# Maintainer: David Runge <dave@sleepmap.de>
|
|
|
|
# Contributor: Dan McGee <dan@archlinux.org>
|
2014-09-12 13:23:10 +00:00
|
|
|
# Contributor: Martin Striz <ms@poruba.net>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - removed dependency on numactl
|
|
|
|
|
|
|
|
pkgname=irqbalance
|
2019-05-22 13:43:55 +00:00
|
|
|
pkgver=1.6.0
|
2020-05-19 01:50:28 +00:00
|
|
|
pkgrel=2
|
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')
|
2019-05-16 23:03:39 +00:00
|
|
|
url="https://github.com/irqbalance/irqbalance"
|
|
|
|
license=('GPL2')
|
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')
|
2019-05-16 23:03:39 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v$pkgver.tar.gz")
|
2019-05-22 13:43:55 +00:00
|
|
|
sha512sums=('ce89dc41eb3aab5950a56b4b1c817aae5e87eaa84bc69bf88618caf53386513e488bb0b4724a600ae175c96be509367cfc418c7f85531007f80e02f7de549b16')
|
2016-01-08 01:59:12 +00:00
|
|
|
|
|
|
|
prepare() {
|
2019-05-16 23:03:39 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
# fix location of configuration and binary in service
|
|
|
|
sed -e 's|/path/to/|/etc/|g' \
|
|
|
|
-e 's|/usr/sbin|/usr/bin|g' \
|
|
|
|
-i "misc/${pkgname}.service"
|
|
|
|
autoreconf -vfi
|
2016-01-08 01:59:12 +00:00
|
|
|
}
|
2014-09-12 13:23:10 +00:00
|
|
|
|
|
|
|
build() {
|
2019-05-16 23:03:39 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
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() {
|
2019-05-16 23:03:39 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2014-09-12 13:23:10 +00:00
|
|
|
make install DESTDIR="$pkgdir"
|
2019-05-16 23:03:39 +00:00
|
|
|
install -vDm 644 misc/irqbalance.service \
|
|
|
|
-t "${pkgdir}/usr/lib/systemd/system/"
|
|
|
|
install -vDm 644 misc/irqbalance.env -t "${pkgdir}/etc/"
|
|
|
|
install -vDm 644 {AUTHORS,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}"
|
2014-09-12 13:23:10 +00:00
|
|
|
}
|