# $Id: PKGBUILD 97132 2013-09-13 13:17:58Z bgyorgy $ # Maintainer: Bartłomiej Piotrowski # Contributor: AndyRTR # Contributor: kiefer pkgname=lxdm pkgver=0.4.1 pkgrel=27 pkgdesc='Lightweight X11 Display Manager' arch=('i686' 'x86_64' 'mips64el') url="http://sourceforge.net/projects/lxdm/" license=('GPL') groups=('lxde') depends=('gtk2' 'xorg-server' 'iso-codes') makedepends=('intltool') optdepends=('gtk-engines: default GTK+ theme' 'librsvg: display the default background') install=$pkgname.install backup=('etc/lxdm/lxdm.conf' 'etc/pam.d/lxdm' 'etc/lxdm/Xsession' 'etc/lxdm/PreLogin' 'etc/lxdm/LoginReady' 'etc/lxdm/PostLogin' 'etc/lxdm/PostLogout' 'etc/lxdm/PreReboot' 'etc/lxdm/PreShutdown') source=(http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz git-fixes.patch default-config.patch) md5sums=('8da1cfc2be6dc9217c85a7cf51e1e821' '03d0779fbac1a9964776c82e69fbc53e' 'c61ec8ffd3fe8bd2a6a9178393622f4c') prepare(){ cd "$srcdir/$pkgname-$pkgver" # Apply various fixes from git patch -Np1 -i ../git-fixes.patch # Adjust Arch-specific settings patch -Np1 -i ../default-config.patch # Fix version number sed -i 's/3.6.0/3.8/' gnome-shell/LXDM_User_Switch@dgod/metadata.json } build() { cd "$srcdir/$pkgname-$pkgver" autoreconf -fi ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/lxdm \ --sysconfdir=/etc --localstatedir=/var make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install chmod 644 "$pkgdir/etc/lxdm/lxdm.conf" # Home directory install -dm 755 "$pkgdir/var/lib/lxdm" echo 'GDK_CORE_DEVICE_EVENTS=true' > "$pkgdir"/var/lib/lxdm/.pam_environment chown -R 121:121 "$pkgdir/var/lib/lxdm" # GNOME Shell extension mkdir -p "$pkgdir/usr/share/gnome-shell/extensions" cp -r gnome-shell/LXDM_User_Switch@dgod "$pkgdir/usr/share/gnome-shell/extensions" }