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

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

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

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

45
md5sums="30174d3941c5452a1e4ecee394a76ff8  irqbalance-1.0.9.tar.gz
46
731fa9a46bc4fa380604bfb76d96d1ed  irqbalance.confd
47
ab27fa1e4ab71fc6bfe92cbf3a07c2cb  irqbalance.initd"
48
sha256sums="f1b8115948bb9f0bc36b9d7143ee8be751a294bc189d311408e753acc37169c3  irqbalance-1.0.9.tar.gz
49
98bb18cd977a0706c3e63a36a7dfb2aa01cd84cabb719da0ea5bf795e5d02413  irqbalance.confd
50
d248c538d5d74329979e4204eafa920af2b8addeccd25b53ff51f6d689fe57f0  irqbalance.initd"
51
sha512sums="ef3ce9eeec11ec86291e2e3cd701e782ee1fb4ba256e2ea5ea0ea04b373f97ff2eae0a44919127c4dbd7fd805e9e3df3a5e62a3528e4d1c9bbab4db39186b5c5  irqbalance-1.0.9.tar.gz
52
90e7ed187b4dccd6f6c4383ba54d6e1aed1645240e44aaf02db1b70b56594b1a828644d671e6db91212417981b1d5e53d1ecfd4b366496dbcb484d1064d7d24c  irqbalance.confd
53
92de6d1f0dcfbc0744dd2de1c1848f6322271af245249a01c4464ea1d36289f2cb35714e6bf7e9874d633b3d02359515b6354cc7ae6ad3008884d53151d8638c  irqbalance.initd"