summaryrefslogtreecommitdiff
path: root/extra/rtkit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/rtkit/PKGBUILD')
-rw-r--r--extra/rtkit/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/extra/rtkit/PKGBUILD b/extra/rtkit/PKGBUILD
new file mode 100644
index 000000000..553c69d38
--- /dev/null
+++ b/extra/rtkit/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 111724 2011-02-28 21:05:00Z heftig $
+# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor: Corrado Primier <bardo@aur.archlinux.org>
+
+pkgname=rtkit
+pkgver=0.10
+pkgrel=1
+pkgdesc="Realtime Policy and Watchdog Daemon"
+arch=('i686' 'x86_64')
+url="http://git.0pointer.de/?p=rtkit.git"
+license=('GPL' 'custom:BSD')
+depends=('dbus' 'polkit')
+makedepends=('pkgconfig')
+install=rtkit.install
+source=(http://0pointer.de/public/$pkgname-$pkgver.tar.gz)
+md5sums=('9ab7f2a25ddf05584ea2216dfe4cefd4')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --libexecdir=/usr/lib --prefix=/usr --sysconfdir=/etc
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ # DBus configuration
+ mkdir -p "$pkgdir/usr/share/dbus-1/interfaces"
+ ./rtkit-daemon --introspect >"$pkgdir/usr/share/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml"
+
+ # Client license
+ mkdir -p "$pkgdir/usr/share/licenses/rtkit"
+ sed -ne '4,25p' rtkit.c >"$pkgdir/usr/share/licenses/rtkit/COPYING"
+}