APKBUILD 1.92 KB
Newer Older
1
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
2 3
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=irqbalance
4 5
pkgver=1.1.0
pkgrel=0
6
pkgdesc="Daemon that distributes interrupts over the processors"
7
url="https://github.com/Irqbalance/irqbalance"
8
arch="all"
9 10 11
license="GPL2+"
depends=""
depends_dev=""
12
makedepends="$depends_dev glib-dev autoconf automake libtool"
13
install=""
14
subpackages="$pkgname-doc"
15
source="$pkgname-$pkgver.tar.gz::https://github.com/Irqbalance/irqbalance/archive/v$pkgver.tar.gz
16 17 18 19 20 21
	irqbalance.confd
	irqbalance.initd"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
22
	./autogen.sh
23 24 25 26 27
	return 0
}

build() {
	cd "$_builddir"
28 29 30 31
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
32 33
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
34 35
		--infodir=/usr/share/info \
		|| return 1
36 37 38 39 40 41
	make || return 1
}

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

46
md5sums="b15d975336080bcac4be0c1752d43cf3  irqbalance-1.1.0.tar.gz
47
731fa9a46bc4fa380604bfb76d96d1ed  irqbalance.confd
48
ab27fa1e4ab71fc6bfe92cbf3a07c2cb  irqbalance.initd"
49
sha256sums="91506e638b03bf27cf5da7dc250d58a753ce8a0288a20265fc7ff0266040706b  irqbalance-1.1.0.tar.gz
50
98bb18cd977a0706c3e63a36a7dfb2aa01cd84cabb719da0ea5bf795e5d02413  irqbalance.confd
51
d248c538d5d74329979e4204eafa920af2b8addeccd25b53ff51f6d689fe57f0  irqbalance.initd"
52
sha512sums="66abf71b87e25df190417afbf9da24d826d817de3c0ebdc686e3ae56ac131b2f9586092ba67e5f9c749cb139fbf2faaa2af2ef30700955a5b347f1964f61bf6b  irqbalance-1.1.0.tar.gz
53
90e7ed187b4dccd6f6c4383ba54d6e1aed1645240e44aaf02db1b70b56594b1a828644d671e6db91212417981b1d5e53d1ecfd4b366496dbcb484d1064d7d24c  irqbalance.confd
54
92de6d1f0dcfbc0744dd2de1c1848f6322271af245249a01c4464ea1d36289f2cb35714e6bf7e9874d633b3d02359515b6354cc7ae6ad3008884d53151d8638c  irqbalance.initd"