3fdad91bf9
Discussed with @chneukirchen.
95 lines
2.9 KiB
Bash
95 lines
2.9 KiB
Bash
# Template file for 'lightdm'
|
|
pkgname=lightdm
|
|
version=1.16.5
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--sbindir=/usr/bin --with-greeter-session=lightdm-gtk-greeter
|
|
--with-greeter-user=lightdm --disable-static --disable-tests
|
|
$(vopt_enable gir introspection)"
|
|
short_desc="Light Display Manager"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-3, LGPL-3"
|
|
homepage="https://launchpad.net/lightdm"
|
|
distfiles="https://launchpad.net/lightdm/${version%.*}/$version/+download/$pkgname-$version.tar.xz"
|
|
checksum=8c8c58e9eaafb25c772ed809bf6b374254e51f6138ac8c2caf3e8bdaf87e63e1
|
|
|
|
build_options="gir"
|
|
hostmakedepends="pkg-config intltool itstool $(vopt_if gir gobject-introspection)"
|
|
makedepends="dbus-glib-devel libxklavier-devel libxml2-devel
|
|
gtk+3-devel libxcb-devel libXdmcp-devel pam-devel vala-devel
|
|
libgcrypt-devel accountsservice-devel"
|
|
depends="dbus accountsservice ConsoleKit2 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"
|
|
lightdm_homedir="/var/lib/lightdm"
|
|
subpackages="liblightdm-gobject lightdm-devel"
|
|
make_dirs="
|
|
/var/lib/lightdm 0755 lightdm lightdm
|
|
/var/lib/lightdm-data 0755 lightdm lightdm"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
configure_args+=" MOC4=/usr/lib/qt/bin/moc MOC5=/usr/lib/qt5/bin/moc"
|
|
makedepends+=" qt-devel qt5-devel"
|
|
subpackages+=" liblightdm-qt liblightdm-qt5"
|
|
fi
|
|
|
|
post_install() {
|
|
# Remove provided init file and use our own.
|
|
rm -rf ${DESTDIR}/etc/init
|
|
vsv lightdm
|
|
vinstall ${FILESDIR}/lightdm.rules 644 usr/share/polkit-1/rules.d
|
|
vinstall ${FILESDIR}/xsession 755 etc/lightdm Xsession
|
|
# make pam_systemd optional
|
|
for f in ${DESTDIR}/etc/pam.d/*; do
|
|
sed 's|\(.*pam_systemd.*\)|-\1|' -i $f
|
|
echo "-session optional pam_ck_connector.so nox11" >> $f
|
|
done
|
|
sed 's|\#session-wrapper=.*|session-wrapper=/etc/lightdm/Xsession|' -i ${DESTDIR}/etc/lightdm/lightdm.conf
|
|
}
|
|
|
|
liblightdm-gobject_package() {
|
|
short_desc+=" - GObject support library"
|
|
pkg_install() {
|
|
vmove "usr/lib/liblightdm-gobject*.so.*"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/lib/girepository-1.0
|
|
fi
|
|
}
|
|
}
|
|
liblightdm-qt_package() {
|
|
short_desc+=" - QT 4.x support library"
|
|
pkg_install() {
|
|
vmove "usr/lib/liblightdm-qt-3.so.*"
|
|
}
|
|
}
|
|
liblightdm-qt5_package() {
|
|
short_desc+=" - QT 5.x support library"
|
|
pkg_install() {
|
|
vmove "usr/lib/liblightdm-qt5*.so.*"
|
|
}
|
|
}
|
|
lightdm-devel_package() {
|
|
depends="libglib-devel liblightdm-gobject-${version}_${revision}"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
depends+=" liblightdm-qt-${version}_${revision}"
|
|
depends+=" liblightdm-qt5-${version}_${revision}"
|
|
fi
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/gtk-doc
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/vala
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|