mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
added extra/rtkit
This commit is contained in:
parent
1f648ffa68
commit
87fef0c490
1 changed files with 52 additions and 0 deletions
52
extra/rtkit/PKGBUILD
Normal file
52
extra/rtkit/PKGBUILD
Normal file
|
@ -0,0 +1,52 @@
|
|||
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
||||
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - fix xml-introspection.S assembly for ARM (@ == comment)
|
||||
|
||||
pkgname=rtkit
|
||||
pkgver=0.12
|
||||
pkgrel=1
|
||||
pkgdesc="Realtime Policy and Watchdog Daemon"
|
||||
arch=(x86_64)
|
||||
url="https://github.com/heftig/rtkit"
|
||||
license=(GPL3 'custom:BSD')
|
||||
depends=(dbus polkit systemd)
|
||||
makedepends=(git)
|
||||
_commit=4c7e5ca63b1278b41c31b63a4ca5cce331d9db2e # tags/v0.12^0
|
||||
source=("git+https://github.com/heftig/rtkit#commit=$_commit")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
git describe --tags | sed 's/^v//;s/-/+/g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd $pkgname
|
||||
sed -i 's/@object/%object/' xml-introspection.S
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--libexecdir=/usr/lib \
|
||||
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname
|
||||
make DESTDIR="$pkgdir" install
|
||||
rm -r "$pkgdir/usr/lib/installed-tests"
|
||||
|
||||
echo 'u rtkit 133 "RealtimeKit" /proc' |
|
||||
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
|
||||
|
||||
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
|
||||
sed -ne '4,25p' rtkit.c >"$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
Loading…
Reference in a new issue