void-packages/srcpkgs/ulatencyd/template
2015-11-17 16:47:19 +01:00

80 lines
2.6 KiB
Bash

# Template file for 'ulatencyd'
pkgname=ulatencyd
version=0.6.0
revision=6
_subrelease=alpha.2.1
wrksrc="${pkgname}-${version}-${_subrelease}"
build_style=cmake
hostmakedepends="cmake pkg-config"
makedepends="procps-ng-devel glib-devel dbus-glib-devel lua51-devel libxcb-devel"
depends="luaposix51 ConsoleKit2"
short_desc="Daemon to minimize latency on a linux system using cgroups"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="https://github.com/poelzi/${pkgname}"
distfiles="${homepage}/archive/${version}-${_subrelease}.tar.gz"
checksum=efaf0cf814ef36b9d63f6a588482a2f1ac435163ff5e9d8d20ce07de58efbf2e
LDFLAGS+=" -Wl,-Bdynamic -lm -ldl"
configure_args="-DDEVELOP_MODE=false -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSYSTEMD_DIR=''"
conf_files="
/etc/dbus-1/system.d/org.quamquam.ulatencyd.conf
/etc/ulatencyd/simple.conf
/etc/ulatencyd/cgroups.conf
/etc/ulatencyd/scheduler/20-desktop.lua
/etc/ulatencyd/scheduler/30-single-task.lua
/etc/ulatencyd/scheduler/30-game.lua
/etc/ulatencyd/scheduler/50-video_playback.lua
/etc/ulatencyd/scheduler/99-cleanup.lua
/etc/ulatencyd/scheduler/00-common.lua
/etc/ulatencyd/scheduler/20-one-seat-desktop.lua
/etc/ulatencyd/rules/subtle.lua
/etc/ulatencyd/rules/zz_isolate.lua
/etc/ulatencyd/rules/protectors.lua
/etc/ulatencyd/rules/awesome.lua
/etc/ulatencyd/rules/desktop.lua
/etc/ulatencyd/rules/gnome.lua
/etc/ulatencyd/rules/00-fixers.lua
/etc/ulatencyd/rules/lxde.lua
/etc/ulatencyd/rules/zz_fixers.lua
/etc/ulatencyd/rules/system.lua
/etc/ulatencyd/rules/kde.lua
/etc/ulatencyd/rules/scheduler.lua
/etc/ulatencyd/rules/xfce.lua
/etc/ulatencyd/rules/io.lua
/etc/ulatencyd/ulatencyd.conf
/etc/ulatencyd/simple.d/subtle.conf
/etc/ulatencyd/simple.d/isolate.conf
/etc/ulatencyd/simple.d/games.conf
/etc/ulatencyd/simple.d/lxde.conf
/etc/ulatencyd/simple.d/applications.conf
/etc/ulatencyd/simple.d/audio.conf
/etc/ulatencyd/simple.d/idle.conf
/etc/ulatencyd/simple.d/sessions.conf
/etc/ulatencyd/simple.d/dbus.conf
/etc/ulatencyd/simple.d/xfce.conf
/etc/ulatencyd/simple.d/cinnamon.conf
/etc/ulatencyd/simple.d/screencasters.conf
/etc/ulatencyd/simple.d/ui.conf
/etc/ulatencyd/simple.d/pantheon.conf
/etc/ulatencyd/simple.d/portage.conf
/etc/ulatencyd/simple.d/fixes.conf
/etc/ulatencyd/simple.d/ubuntu.conf
/etc/ulatencyd/simple.d/bittorrent.conf
/etc/ulatencyd/simple.d/video.conf
/etc/ulatencyd/simple.d/unity.conf
/etc/ulatencyd/simple.d/media.conf"
patch_args='-Np1'
post_install() {
vsv ulatencyd
vinstall ${FILESDIR}/subtle.lua 644 etc/ulatencyd/rules
vinstall ${FILESDIR}/subtle.conf 644 etc/ulatencyd/simple.d
vmkdir usr/share
mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
}