mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
53 lines
1.3 KiB
Bash
53 lines
1.3 KiB
Bash
|
# 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"
|
||
|
}
|