1 #Contributor: Phillipe Smith <phillipe@archlinux.com.br>
5 pkgdesc='Lightweight Display Manager (part of LXDE)'
7 url="http://blog.lxde.org/?p=531"
11 conflicts=('lxdm' 'lxdm-svn')
12 backup=('etc/lxdm/lxdm.conf')
14 depends=('gtk2' 'xorg-server' 'consolekit')
15 makedepends=('autoconf' 'automake' 'intltool' 'gcc' 'make' 'pkgconfig' 'git')
16 source=('Xsession.patch' 'lxdm.patch' 'lxdm-pam.patch' 'lxdm-daemon' 'arch-dark-theme.tar.gz')
17 md5sums=('9bdf95adb74d81d4b6b6176fb1142090'
18 'baed9055e8825a5511712bc095197519'
19 'b20fe3c8487a039050986d60e45233a9'
20 '705f394052fdd0dec22e95321d170de0'
21 '0cc1eeb79300a982bea2f9bea79c1b06')
23 _gitroot="git://lxde.git.sourceforge.net/gitroot/lxde/lxdm"
28 msg "Connecting to GIT server...."
30 if [ -d $_gitname ] ; then
31 cd $_gitname && git pull origin
32 msg "The local files are updated."
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_gitname-build"
41 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
45 ./configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib/lxdm || return 1
48 patch -Np0 < ../lxdm.patch
49 patch -Np0 < ../Xsession.patch
51 # Removing chown from data/Makefile and adding it to lxdm.install
52 sed -i '/chown\ root:lxdm/d' ${srcdir}/lxdm-build/data/Makefile
56 cd "$srcdir/$_gitname-build"
57 make DESTDIR=${pkgdir} install || return 1
58 install -m644 ${srcdir}/lxdm-pam.patch ${pkgdir}/etc/pam.d/lxdm || return 1
59 install -Dm755 ${srcdir}/lxdm-daemon ${pkgdir}/etc/rc.d/lxdm || return 1
60 cp -rf ${srcdir}/Arch-Dark ${pkgdir}/usr/share/lxdm/themes || return 1
61 # Setting Arch-Dark theme the default LXDM theme
62 sed 's/Industrial/Arch-Dark/' -i ${pkgdir}/etc/lxdm/lxdm.conf