aports/testing/rtkit/APKBUILD
Sören Tempel 75830b9b1c testing/rtkit: disable on riscv64
no polkit.
2021-07-25 12:07:02 +02:00

57 lines
1.9 KiB
Plaintext

# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=rtkit
pkgver=0.13
pkgrel=0
pkgdesc="D-Bus system service that enables real time scheduling on request"
url="https://github.com/heftig/rtkit"
# s390x, mips64, riscv64: polkit-elogind-dev
arch="all !s390x !mips64 !riscv64"
license="GPL-3.0-only AND MIT" # README says BSD is used for client, but code uses MIT instead
makedepends="
dbus-dev
libcap-dev
meson
polkit-elogind-dev
xxd
"
subpackages="
$pkgname-doc
$pkgname-openrc
"
install="$pkgname.pre-install"
source="
https://github.com/heftig/rtkit/releases/download/v$pkgver/rtkit-$pkgver.tar.xz
$pkgname.initd
$pkgname.confd
sched_getscheduler_sched_setscheduler.patch
"
build() {
abuild-meson \
-Ddocs=enabled \
-Dman=enabled \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
meson test --no-rebuild -v -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
rm -r "$pkgdir"/usr/lib/systemd
# don't add emtpy /usr/lib dir, but use rmdir instead of rm -rf to fail if lib
# is no longer empty
rmdir "$pkgdir"/usr/lib
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
sha512sums="c058d770a4ccfdf4e2e3a713748b6a705b6d3e148a903b9dbba4bba9d3ded2b819d7dfbfa37b9fad78e57c0a5f10f2f94226f8738f666e692a085ab297a36b36 rtkit-0.13.tar.xz
764139cada4f51f7822dcf4913af068a129b95286122479f3afe84727ade80705b52aa86bb6ec0527fad57f0f4d4e861dd1be030f845b2a012fbd2ed37537382 rtkit.initd
84e11b51c0bb6db105353f2123595a802d0f170772edf23606ca126a4861af865600267956d288c2b0121d7be3d2bd1c51cb6d5a9ee54863dad383a121a430eb rtkit.confd
9a9bb315e8d207c673cb795f91e025f313bd3a1881323c968777db6c0029de85aaecd06cf833d3ffd7468477f6586de756c077220043631a60155f28c9d66ba3 sched_getscheduler_sched_setscheduler.patch"