updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / slim-nopasswdchar / PKGBUILD
blobfaec1fdce94cb0874e1c4ee5911123d998aa1c48
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
7 pkgver=1.3.2
8 pkgrel=1
9 pkgdesc="Desktop-independent graphical login manager for X11 with nopasswdchar patch."
10 arch=('i686' 'x86_64')
11 url="http://slim.berlios.de/"
12 license=('GPL2')
13 depends=('pam' 'libxmu' 'libpng' 'libjpeg>=8' 'libxft')
14 provides=('slim')
15 conflicts=('slim')
16 backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim')
17 install=slim.install
18 source=(http://download.berlios.de/slim/slim-$pkgver.tar.gz
19         'slim'
20         'slim.logrotate'
21         'slim.pam'
22         'slim-restart.patch'
23         'slim-tty-slowness.patch'
24         'slim-gcc44.patch'
25         'slim-nopasswdchar.patch')
26 md5sums=('ca1ae6120e6f4b4969f2d6cf94f47b42'
27          'd8ea9c4dee2811524b67f4f666311a1f'
28          '43da096480bf72c3ccec8ad8400f34f0'
29          'b20fe3c8487a039050986d60e45233a9'
30          '1610b2834bf4622c0668fb15ea05e399'
31          '11ad2cd582edf705a417c33fe24f1a61'
32          '8db2bb319be4c82fca7dbbb7999f8800'
33          '987fad1509ee614550c7f96ecb4b7620')
35 build() {
36   cd "$srcdir/slim-$pkgver"
37   
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
44   make USE_PAM=1
47 package() {
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"