void-packages/srcpkgs/lightdm/template

80 lines
2.5 KiB
Text
Raw Normal View History

2011-02-16 13:27:20 +00:00
# Template file for 'lightdm'
pkgname=lightdm
2014-11-16 08:31:10 +00:00
version=1.12.2
revision=1
build_style=gnu-configure
2012-04-20 08:22:48 +00:00
configure_args="--with-greeter-session=lightdm-gtk-greeter
2012-10-15 21:30:02 +00:00
--with-greeter-user=lightdm --disable-static --disable-tests"
2011-02-16 13:27:20 +00:00
short_desc="Light Display Manager"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-11-09 07:41:52 +00:00
license="GPL-3, LGPL-3"
2012-07-09 21:05:03 +00:00
homepage="https://launchpad.net/lightdm"
2013-10-11 07:49:48 +00:00
distfiles="https://launchpad.net/lightdm/${version%.*}/$version/+download/$pkgname-$version.tar.xz"
2014-11-16 08:31:10 +00:00
checksum=ce36bacef7a0ac5b720dc0f4aeb1c37aa56e7b72f7390e290a670fb1b8231736
2011-02-16 13:27:20 +00:00
# both install /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf
conflicts="sddm>=0"
2014-11-09 09:11:11 +00:00
build_options="systemd"
2014-08-03 15:27:26 +00:00
hostmakedepends="pkg-config intltool itstool gobject-introspection"
2013-10-11 07:49:48 +00:00
makedepends="dbus-glib-devel libxklavier-devel libxml2-devel
qt-devel gtk+3-devel libxcb-devel libXdmcp-devel pam-devel vala-devel
2014-11-09 09:11:11 +00:00
libgcrypt-devel accountsservice-devel $(vopt_if systemd systemd-devel)"
depends="dbus accountsservice $(vopt_if systemd '' 'ConsoleKit upower0')"
conf_files="
/etc/lightdm/keys.conf
/etc/lightdm/lightdm.conf
/etc/lightdm/users.conf
/etc/pam.d/lightdm
/etc/pam.d/lightdm-greeter
/etc/pam.d/lightdm-autologin"
system_accounts="lightdm"
2014-08-03 15:27:26 +00:00
lightdm_homedir="/var/lib/lightdm"
2014-09-04 09:00:26 +00:00
2012-04-20 08:22:48 +00:00
post_install() {
2011-05-18 10:25:00 +00:00
# Remove provided init file and use our own.
2011-02-16 13:27:20 +00:00
rm -rf ${DESTDIR}/etc/init
2014-10-13 15:53:16 +00:00
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/lightdm.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/lightdm.tmpfiles 644 usr/lib/tmpfiles.d lightdm.conf
fi
vsv lightdm
vinstall ${FILESDIR}/lightdm.rules 644 usr/share/polkit-1/rules.d
2013-10-11 08:16:08 +00:00
vinstall ${FILESDIR}/xsession 755 etc/lightdm Xsession
2014-08-03 15:27:26 +00:00
# make pam_systemd optional
for f in ${DESTDIR}/etc/pam.d/*; do
sed 's|\(.*pam_systemd.*\)|-\1|' -i $f
2014-11-09 09:11:11 +00:00
echo "-session optional pam_ck_connector.so nox11" >> $f
2014-08-03 15:27:26 +00:00
done
sed 's|\#session-wrapper=.*|session-wrapper=/etc/lightdm/Xsession|' -i ${DESTDIR}/etc/lightdm/lightdm.conf
2011-02-16 13:27:20 +00:00
}
liblightdm-gobject_package() {
2013-10-11 07:49:48 +00:00
short_desc+=" - GObject support library"
pkg_install() {
2013-10-11 07:49:48 +00:00
vmove "usr/lib/liblightdm-gobject*.so.*"
vmove usr/lib/girepository-1.0
}
}
liblightdm-qt_package() {
2013-10-11 07:49:48 +00:00
short_desc+=" - QT support library"
pkg_install() {
2013-10-11 07:49:48 +00:00
vmove "usr/lib/liblightdm-qt*.so.*"
}
}
lightdm-devel_package() {
2014-11-09 09:11:11 +00:00
depends="
libglib-devel
liblightdm-gobject>=${version}_${revision}
2014-01-22 09:28:38 +00:00
liblightdm-qt>=${version}_${revision}"
2013-10-11 07:49:48 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
vmove usr/share/vala
vmove usr/share/gir-1.0
2013-10-11 07:49:48 +00:00
vmove "usr/lib/*.so"
}
}