updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / slim-unicode / PKGBUILD
blob372d0cedb9a87e0542297985f7ccde7fc096925d
1 # $Id: PKGBUILD 122020 2011-05-01 17:05:22Z bisson $
2 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: Thayer Williams <thayer@archlinux.org>
4 # Contributor: Alexander Fehr <pizzapunk gmail com>
5 # Contributor: Hugo Ideler <hugoideler@dse.nl>
7 _pkgname=slim
8 pkgname=${_pkgname}-unicode
9 pkgver=1.3.2
10 pkgrel=6
11 pkgdesc='Desktop-independent graphical login manager for X11'
12 arch=('i686' 'x86_64')
13 url='http://slim.berlios.de/'
14 license=('GPL2')
15 depends=('pam' 'libxmu' 'libpng' 'libjpeg' 'libxft')
16 backup=('etc/slim.conf' 'etc/logrotate.d/slim' 'etc/pam.d/slim')
17 source=("http://download.berlios.de/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
18         'rc.d'
19         'pam.d'
20         'logrotate'
21         'gcc44.patch'
22         'ptr_pam.patch'
23         'no-host.patch'
24         'restart.patch'
25         'sigterm.patch'
26         'tty-slowness.patch'
27         'unicode.patch'
28         'slim.sh')
29 sha1sums=('e421d5487732c8317f8f591906661e014b036358'
30           'efc36c6f9a82e55243c5286f57715e2010f1314a'
31           'a0e991ef0ac5120465a3be014a26e70ba073b6ae'
32           'b969cc902c1d9915a5609141a652c77b2732407b'
33           '51121d451116c768d0fc027ff1ea70aaaef036e7'
34           '640668c984a13593a1bfba8d3b503c005d5f401e'
35           'b86eddd083fb9f6259e46c735f55ebe76c655bd3'
36           '2d526bc0c498bf307ee50e2d22b4f53ffa0c4435'
37           '0b35048723c527fb824c5e0f9b9064f751871785'
38           '213fefe8533c845ea8c40585b6a8097820d5e5d2'
39           '97d46bde445aba4b3ebb2a7325e0941ee55b4c18'
40           'a0800ada50b6b17e7263f7ecd8a74e041759bdc6')
42 provides=('slim')
43 conflicts=('slim')
44 install=install
46 build() {
47         cd "${srcdir}/${_pkgname}-${pkgver}"
49         sed -i -e 's/png12/png14/g' Makefile
50         patch -p1 -i ../gcc44.patch   # FS#14815: lacks include for gcc-4.4
51         patch -p1 -i ../ptr_pam.patch # FS#23995: pointer mishandling confuses PAM
52         patch -p1 -i ../no-host.patch # cf patch: do not set PAM host
53         patch -p1 -i ../restart.patch # cf patch: restart X server if killed
54         patch -p1 -i ../sigterm.patch # FS#23984: do not wait for input when SIGTERM'd
55         patch -p1 -i ../tty-slowness.patch # FS#18313: fix sluggish TTY after slim start
56         patch -p1 -i ../unicode.patch # Add support of unicode
58         make USE_PAM=1
61 package() {
62         cd "${srcdir}/${_pkgname}-${pkgver}"
64         make DESTDIR="${pkgdir}" MANDIR=/usr/share/man install
66         install -D -m755 ../rc.d "${pkgdir}"/etc/rc.d/slim
67         install -D -m644 ../pam.d "${pkgdir}"/etc/pam.d/slim
68         install -D -m644 ../logrotate "${pkgdir}"/etc/logrotate.d/slim
69         mkdir -p "${pkgdir}"/usr/share/slim/bin/
70         mv "${pkgdir}"/usr/bin/slim "${pkgdir}"/usr/share/slim/bin/
71         install -D -m755 ../slim.sh "${pkgdir}"/usr/bin/slim
73         # Provide sane defaults
74         sed -i 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|' "${pkgdir}"/etc/slim.conf
75         sed -i 's|/var/run/slim.lock|/var/lock/slim.lock|' "${pkgdir}"/etc/slim.conf