aboutsummaryrefslogtreecommitdiffstats
path: root/main/irqbalance/APKBUILD
blob: eb431f3f61112cd65897270c4b6048215869c78b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=irqbalance
pkgver=1.0.7
pkgrel=2
pkgdesc="Daemon that distributes interrupts over the processors"
url="https://github.com/Irqbalance/irqbalance"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev glib-dev autoconf automake libtool"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Irqbalance/irqbalance/archive/v$pkgver.tar.gz
	irqbalance.confd
	irqbalance.initd"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	./autogen.sh
	return 0
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="2a7090abab6bba15d632c24f5554e7ae  irqbalance-1.0.7.tar.gz
731fa9a46bc4fa380604bfb76d96d1ed  irqbalance.confd
25fb4cee9e7b6fc243c10e82c43d0d8d  irqbalance.initd"
sha256sums="8c3916780d254b74fb1c7ec22876d63ac01f1b32776d9204a604b73c8f591d2a  irqbalance-1.0.7.tar.gz
98bb18cd977a0706c3e63a36a7dfb2aa01cd84cabb719da0ea5bf795e5d02413  irqbalance.confd
65a77bd6ae0b7d4f3323ca5e3a6ecc3a04008d6569208ae9e132a88fae28d83f  irqbalance.initd"
sha512sums="388f982fe620d8df850e6e298a194a5ba1393f29f1b25897bfa79e34f3acb32e762b86e31154e7af614d5d84a38a61b85ff07c0dd2032e1eb6b0e30ea9010612  irqbalance-1.0.7.tar.gz
90e7ed187b4dccd6f6c4383ba54d6e1aed1645240e44aaf02db1b70b56594b1a828644d671e6db91212417981b1d5e53d1ecfd4b366496dbcb484d1064d7d24c  irqbalance.confd
82aeee7408f5cef2e619b1ce3d8ef8f7e7e4e18d6a300a5ec08b606b3b5fbd9c561898749252d38b73b301e9d2348ed59a42b7da0d2180a978e6f2c6e5d2e44e  irqbalance.initd"