1 # Maintainer: L42y <423300@gmail.com>
2 # Contributor: pisuka <tekmon@gmail.com>
7 pkgdesc="A lightweight display manager."
9 url="https://launchpad.net/lightdm"
11 depends=('gnome-themes-standard' 'gnome-icon-theme' 'dbus-glib' 'libxklavier' 'intltool' 'qt')
13 'xorg-xserver-xephr: run lightdm in test mode'
15 makedepends=('bzr' 'vala' 'gnome-common' 'gtk-doc' 'gnome-doc-utils' 'pkg-config')
17 source=('rc.lightdm' 'lightdm-bzr.install')
18 md5sums=('6699eb35f65ff498d1d05e6782f4f902'
19 '8854d0ee91445357ed28da84aec87885')
20 install=${pkgname}.install
21 backup=('etc/lightdm/lightdm.conf' 'etc/lightdm/keys.conf' 'etc/lightdm/users.conf' 'etc/lightdm/lightdm-gtk-greeter.conf')
24 _bzrtrunk="lp:lightdm"
25 _bzrmod="lightdm-trunk"
29 msg "Connecting to Bazaar server...."
31 if [ -d $_bzrmod ] ; then
32 cd ${_bzrmod} && bzr pull ${_bzrtrunk} -r ${pkgver}
33 msg "The local files are updated."
35 bzr branch ${_bzrtrunk} ${_bzrmod} -r ${pkgver}
38 msg "Bazaar checkout done or server timeout"
39 msg "Starting make..."
41 rm -rf "${srcdir}/${_bzrmod}-build"
42 cp -r "${srcdir}/${_bzrmod}" "${srcdir}/${_bzrmod}-build"
43 cd "${srcdir}/${_bzrmod}-build"
45 ./autogen.sh --prefix=/usr \
47 --libexecdir=/usr/lib/lightdm \
49 --enable-introspection=no
54 cd "$srcdir/$_bzrmod-build"
55 make DESTDIR="${pkgdir}" install
57 rm -rf "${pkgdir}/etc/init"
59 mkdir -p "${pkgdir}/etc/rc.d" "${pkgdir}/var/lib/${pkgname/-bzr/}"
60 install -m755 "${srcdir}/rc.${pkgname/-bzr/}" "$pkgdir/etc/rc.d/${pkgname/-bzr/}"