updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / lxdm-git / PKGBUILD
blob5f2de63e172bc21529de074cdf3e8686a6aa982e
1 #Contributor: Phillipe Smith <phillipe@archlinux.com.br>
2 pkgname=lxdm-git
3 pkgver=20110501
4 pkgrel=1
5 pkgdesc='Lightweight Display Manager (part of LXDE)'
6 arch=('i686' 'x86_64')
7 url="http://blog.lxde.org/?p=531"
8 license=('GPL')
9 groups=('lxde')
10 provides=('lxdm')
11 conflicts=('lxdm' 'lxdm-svn')
12 backup=('etc/lxdm/lxdm.conf')
13 install=lxdm.install
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"
24 _gitname="lxdm"
26 build() {
27         cd "$srcdir"
28         msg "Connecting to GIT server...."
30         if [ -d $_gitname ] ; then
31                 cd $_gitname && git pull origin
32                 msg "The local files are updated."
33         else
34                 git clone $_gitroot
35         fi
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"
44         ./autogen.sh
45         ./configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib/lxdm || return 1
46         make || 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 
55 package() {     
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