1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
6 pkgdesc="Daemon to minimize latency on a linux system using cgroups"
8 url="https://github.com/poelzi/ulatencyd"
10 depends=('luaposix' 'dbus-glib' 'libxcb' 'polkit')
11 optdepends=('python2-qt: qt gui'
12 'systemd: systemd service')
14 conflicts=("$pkgname-git")
15 backup=("etc/$pkgname/$pkgname.conf")
16 options=('!emptydirs')
17 source=("https://github.com/downloads/poelzi/$pkgname/$pkgname-$pkgver.tar.gz"
18 "$pkgname.d" "$pkgname" "std.patch")
19 md5sums=('ef03b9c62ebc2f24327963e0c3a55eae'
20 'ceb27033cb79d2a9ad71e390b0b75d7d'
21 '2fb2440ceab34523d6207dfc53dc79d5'
22 '6c3356fb18bd53dcb05987eb1a111d65')
25 cd "$srcdir/$pkgname-$pkgver"
28 sed -i "s|/man/man|/share&|g" docs/CMakeLists.txt
30 # closing STD* in daemon mode cause 100% CPU
31 # quick fix: remove close(STD*_FILENO);
32 # TODO: Signal this bug upstream
33 # UPDATE: Applied official patch from poelzi
34 patch -p1 -i ../std.patch
36 cmake . -DCMAKE_INSTALL_PREFIX=/usr
41 cd "$srcdir/$pkgname-$pkgver"
43 make DESTDIR="$pkgdir/" install
46 install -Dm755 ../$pkgname "$pkgdir/etc/rc.d/$pkgname"
47 install -Dm644 ../$pkgname.d "$pkgdir/etc/conf.d/$pkgname"
49 # pyqt gui python2 fix
50 sed -i 's/env python/&2/' "$pkgdir/usr/bin/ulatency"
53 # vim:set ts=2 sw=2 et: