APKBUILD 2.55 KB
Newer Older
1
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
2 3
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=irqbalance
4
pkgver=1.2.0
5
pkgrel=1
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 ncurses-dev"
13
install=""
14
subpackages="$pkgname-doc"
15
source="$pkgname-$pkgver.tar.gz::https://github.com/Irqbalance/irqbalance/archive/v$pkgver.tar.gz
16
	irqbalance.confd
17
	irqbalance.initd
18 19
	aarch64-fix.patch
	musl-fixes.patch
20
	"
21 22

builddir="$srcdir"/$pkgname-$pkgver
23 24

prepare() {
25 26 27
	cd "$builddir"
	default_prepare || return 1
	./autogen.sh || return 1
28 29 30
}

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

package() {
44
	cd "$builddir"
45
	make DESTDIR="$pkgdir" install
46 47
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
48 49
}

50
md5sums="d1b3f2c31389f2ab955dfa3d02f9f296  irqbalance-1.2.0.tar.gz
51
731fa9a46bc4fa380604bfb76d96d1ed  irqbalance.confd
52 53 54
ab27fa1e4ab71fc6bfe92cbf3a07c2cb  irqbalance.initd
dd86ee710540d43e45da9346285745be  aarch64-fix.patch
460a3a752470abc76892d4b60907b8be  musl-fixes.patch"
55
sha256sums="0efe5d2a0947b54d89c7196a48eca9b3b33c80bc15964e4226a0f7d3fd9535b2  irqbalance-1.2.0.tar.gz
56
98bb18cd977a0706c3e63a36a7dfb2aa01cd84cabb719da0ea5bf795e5d02413  irqbalance.confd
57 58 59
d248c538d5d74329979e4204eafa920af2b8addeccd25b53ff51f6d689fe57f0  irqbalance.initd
985bd705b8a4af9e181d5bb7ddab93db1b15a1d330a237cc83259604ac672922  aarch64-fix.patch
6ac62031457e519a7e1d57f1c9609a710d985d8f12d96f00e1920f565f6cdd44  musl-fixes.patch"
60
sha512sums="02510d0d4dc069570b5f98f3b8191384593a6ed9a88c65c87f5a4261f375c291d95c401b01c03ef9d80834925dd124a088f56ac90c5f290815e26337d4f61c1b  irqbalance-1.2.0.tar.gz
61
90e7ed187b4dccd6f6c4383ba54d6e1aed1645240e44aaf02db1b70b56594b1a828644d671e6db91212417981b1d5e53d1ecfd4b366496dbcb484d1064d7d24c  irqbalance.confd
62 63 64
92de6d1f0dcfbc0744dd2de1c1848f6322271af245249a01c4464ea1d36289f2cb35714e6bf7e9874d633b3d02359515b6354cc7ae6ad3008884d53151d8638c  irqbalance.initd
bf584c1f6e90ecb1582d0d7dcaf397fddce702a0798948a1845a188f998fe4edc7fac2123e16d8ea1487e30461d249f70e5b689c8d948a7557806e46f4ef369d  aarch64-fix.patch
6abfe4dee0b76edb30e24378995cf425b6d8309a7a4f2c1ebd6458bde68103b00273ce36e99d04b1990ca54b1d1a0c503fc37bdffbbf2e704f33b32e09f6db69  musl-fixes.patch"