slim: added runit service.

This commit is contained in:
Juan RP 2014-10-13 16:41:13 +02:00
parent 0a8a731444
commit 7c4fd8cbd9
2 changed files with 7 additions and 6 deletions

2
srcpkgs/slim/files/slim/run Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
exec slim -nodaemon

View file

@ -1,16 +1,18 @@
# Template file for 'slim'
pkgname=slim
version=1.3.6
revision=5
revision=6
lib32disabled=yes
build_style=cmake
build_options="consolekit"
build_options_default="consolekit"
configure_args="-DUSE_PAM=yes -DFREETYPE_INCLUDE_DIR_freetype2=${XBPS_CROSS_BASE}/usr/include/freetype2"
configure_args="$(vopt_if consolekit -DUSE_CONSOLEKIT=1) -DUSE_PAM=yes
-DFREETYPE_INCLUDE_DIR_freetype2=${XBPS_CROSS_BASE}/usr/include/freetype2"
hostmakedepends="cmake pkg-config"
makedepends="libpng-devel>=1.6 freetype-devel libjpeg-turbo-devel libXrandr-devel
libXmu-devel libXft-devel pam-devel $(vopt_if consolekit ConsoleKit-devel)"
conf_files="/etc/slim.conf /etc/pam.d/slim"
replaces="runit-void<20141013_2"
short_desc="Desktop-independent graphical login manager for X11"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -18,13 +20,10 @@ homepage="http://slim.berlios.de/"
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/slim/slim-${version}.tar.gz/d40d256394f9ef34cef34d2aa9cb52e6/slim-${version}.tar.gz"
checksum=21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df
if [ "$build_option_consolekit" ]; then
configure_args+=" -DUSE_CONSOLEKIT=1"
fi
pre_configure() {
sed -i 's|set(LIBDIR "/lib")|set(LIBDIR "/usr/lib")|' CMakeLists.txt
}
post_install() {
vsv slim
vinstall ${FILESDIR}/slim.pam 644 etc/pam.d slim
}