updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / lightdm / PKGBUILD
blob81c6c8d1802dc97168a670d10cf638b6c822f9aa
1 pkgname=lightdm
2 pkgver=1.0.6
3 pkgrel=1
4 pkgdesc="A lightweight display manager"
5 arch=('i686' 'x86_64')
6 url="https://launchpad.net/lightdm"
7 license=('GPL3' 'LGPL3')
8 source=("http://launchpad.net/lightdm/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz"
9         lightdm
10         lightdm.service
11         lightdm-gtk-greeter.conf
12         lightdm.pam
13         lightdm-x11.patch
14         Xsession)
15 depends=('gnome-themes-standard' 'gnome-icon-theme' 'libwebkit' 'dbus-glib' 'gtk3' 'libxklavier' 'accountsservice')
16 options=(!libtool)
18 optdepends=('xorg-server-xephyr: run lightdm in test mode' 
19             'lightdm-webkit-greeter-bzr: webkit lightdm greeter'
20             'lightdm-crowd-greeter: 3d lightdm greeter')
22 makedepends=('gtk-doc' 'gnome-common' 'gnome-doc-utils' 'gobject-introspection' 'pkg-config' 'intltool' 'patch')
24 backup=(etc/apparmor.d/lightdm-guest-session
25         etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf
26         etc/lightdm/keys.conf
27         etc/lightdm/lightdm-gtk-greeter.conf
28         etc/lightdm/lightdm.conf
29         etc/lightdm/users.conf
30         etc/pam.d/lightdm)
32 build() {
33   cd $srcdir/$pkgname-$pkgver
34    
35    patch -Np1 -i ../lightdm-x11.patch
36    find -iname '*moc*' -exec rm {} \;
37    sed -i -e "s|dist_pkglibexec_SCRIPTS = gdmflexiserver|#dist_pkglibexec_SCRIPTS = gdmflexiserver|g" utils/Makefile.am
38    ./autogen.sh 
39    ./configure --prefix=/usr \
40      --sysconfdir=/etc --disable-static --libexecdir=/usr/lib/lightdm \
41      --localstatedir=/var --with-greeter-user=root \
42      --with-greeter-session=lightdm-gtk-greeter     
43    sed -i 's/lightdm-session//' tests/src/Makefile
44    make || return 1
47 package() {
48   cd $srcdir/$pkgname-$pkgver
49   make DESTDIR=$pkgdir install
50   mkdir -p $pkgdir/etc/rc.d 
51   mkdir -p $pkgdir/lib/systemd/system/
52   mkdir -p $pkgdir/etc/pam.d 
54 # init services file 
55   install -m755 ../lightdm $pkgdir/etc/rc.d
56   install -m644 ../lightdm.service $pkgdir/lib/systemd/system/
58 # pam file for gnome-keyring
59   install -m644 ../lightdm.pam $pkgdir/etc/pam.d/lightdm
61 # some tweaks  
62   rm -r $pkgdir/etc/init
63   cp ../lightdm-gtk-greeter.conf $pkgdir/etc/lightdm
64   chmod +x ../Xsession && cp ../Xsession $pkgdir/etc/lightdm
65   sed -i -e "s|minimum-uid=500|minimum-uid=1000|g" $pkgdir/etc/lightdm/users.conf  
66   sed -i -e "s|/usr/sbin/nologin|/sbin/nologin|g" $pkgdir/etc/lightdm/users.conf
67   sed -i -e "s|#session-wrapper=lightdm-session|session-wrapper=/etc/lightdm/Xsession|g" $pkgdir/etc/lightdm/lightdm.conf
71 md5sums=('d3de7006f03f6ab3cdb7dc15508eed28'
72          '6699eb35f65ff498d1d05e6782f4f902'
73          '52003b799271a4d19be51f05b8184eff'
74          'c4321c8f3fd64a3d508b1868328121de'
75          '917df3fa0c57ff7a8af4e66c28b1b7db'
76          'bb9db2c2c10aa95bd2dbfc6e8e67f00a'
77          '683bc8bc3f423157065dc6295f9fecef')