1 # Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
2 # Contributor: Thayer Williams <thayer@archlinux.org>
3 # Contributor: Alexander Fehr <pizzapunk gmail com>
4 # Contributor: Hugo Ideler <hugoideler@dse.nl>
6 pkgname=slim-nopasswdchar
9 pkgdesc="Desktop-independent graphical login manager for X11 with nopasswdchar patch."
10 arch=('i686' 'x86_64')
11 url="http://slim.berlios.de/"
13 depends=('pam' 'libxmu' 'libpng' 'libjpeg>=8' 'libxft')
16 backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim')
18 source=(http://download.berlios.de/slim/slim-$pkgver.tar.gz
23 'slim-tty-slowness.patch'
25 'slim-nopasswdchar.patch')
26 md5sums=('ca1ae6120e6f4b4969f2d6cf94f47b42'
27 'd8ea9c4dee2811524b67f4f666311a1f'
28 '43da096480bf72c3ccec8ad8400f34f0'
29 'b20fe3c8487a039050986d60e45233a9'
30 '1610b2834bf4622c0668fb15ea05e399'
31 '11ad2cd582edf705a417c33fe24f1a61'
32 '8db2bb319be4c82fca7dbbb7999f8800'
33 '987fad1509ee614550c7f96ecb4b7620')
36 cd "$srcdir/slim-$pkgver"
38 sed -i -e 's/png12/png14/g' Makefile
39 patch -Np1 -i ../slim-gcc44.patch
40 patch -Np1 -i ../slim-tty-slowness.patch
41 patch -Np1 -i ../slim-restart.patch
42 patch -Np1 -i ../slim-nopasswdchar.patch
48 cd "$srcdir/slim-$pkgver"
50 make DESTDIR="$pkgdir" MANDIR=/usr/share/man install
51 install -D -m755 "$srcdir/slim" "$pkgdir/etc/rc.d/slim"
52 install -D -m644 "$srcdir/slim.logrotate" "$pkgdir/etc/logrotate.d/slim"
53 install -D -m644 "$srcdir/slim.pam" "$pkgdir/etc/pam.d/slim"
55 # Provide sane defaults
56 sed -i 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' "$pkgdir/etc/slim.conf"
57 sed -i 's|/var/run/slim.lock|/var/lock/slim.lock|' "$pkgdir/etc/slim.conf"