updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / gdm-plymouth / PKGBUILD
blob003215a292bb6cdf67142b320f402f4a67114f5c
1 # $Id$
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=gdm-plymouth
4 _pkgname=gdm
5 pkgver=3.2.0
6 pkgrel=1
7 pkgdesc="Gnome Display Manager (a reimplementation of xdm)"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url="http://www.gnome.org"
11 backup=('etc/pam.d/gdm-autologin' 'etc/pam.d/gdm-fingerprint' 'etc/pam.d/gdm' 'etc/pam.d/gdm-password'
12         'etc/pam.d/gdm-smartcard' 'etc/pam.d/gdm-welcome' 'etc/gdm/custom.conf')
13 groups=('gnome-extra')
14 options=('!libtool')
15 depends=('libcanberra' 'libxklavier' 'gnome-session' 'gnome-settings-daemon' 'metacity' 'upower' 'accountsservice' 'consolekit' 'xorg-xrdb' 'nss' 'plymouth-systemd-git')
16 makedepends=('intltool' 'gnome-doc-utils' 'xorg-server' 'gobject-introspection')
17 conflicts=('fast-user-switch-applet' 'gdm')
18 replaces=('fast-user-switch-applet')
19 provides=("gdm=${pkgver}")
20 install=gdm.install
21 source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgname}/${pkgver%.*}/${_pkgname}-${pkgver}.tar.xz
22         fix_external_program_directories.patch
23         gdm
24         gdm-autologin.pam gdm-fingerprint.pam gdm.pam gdm-password.pam gdm-smartcard.pam gdm-welcome.pam
25         check-for-shell.patch::http://git.gnome.org/browse/gdm/patch/?id=64e6b10f98fe7226a2f41807268dae3afa80236d
26         plymouth.patch)
27 sha256sums=('f827f5500827acef94ad2d60f02ec489bc35cb6392d8f4a60ec814599c2991b7'
28             'e6bcc4ef3b5309193a1701f6ffb6f87f21b7f7e36c63cd445a11f7ab446617e6'
29             '272c08d8e8b50bf424d0705ac864d4c18c47ec4f6893b1af732c2efbc86c9550'
30             'b30dfa217718b43ff3aa4e8af08985963175b79ff30698ec54e8396d2905922d'
31             '5bc3ff3ea7b31219dfcb7d9fc0eb2819eca1c5573a0f426d288a17560a69633e'
32             'f1dfa4d88288d4b0a631a68a51b46c2da537bee8fe5a99f9f288c8ff75a50b19'
33             '0dbb37b4e2a2a2dd2305f0f69cf32d63d353d34aacaf805d2c2ec52fbe558bb4'
34             'df74b0dcfb17ea43cc1e268a27cd256c552672457db1af40b285452d16b3e2fd'
35             '39bf3824cc505043dc3136356da16dab9df9f369f1077435a324be2ac16cf834'
36             'ae54f11e593e97e031d2dd7b33ce9899038356cef87b354f3c4c596a3153155d'
37             '64d10827b1ac88986ed063a346d01a620084215d8b02a642dffdca8977cb3fdd')
39 build() {
40   cd "${srcdir}/${_pkgname}-${pkgver}"
41   patch -Np1 -i "${srcdir}/check-for-shell.patch"
42   patch -Np1 -i "${srcdir}/fix_external_program_directories.patch"
43   # Plymouth Patch, copied from Fedora
44   patch -Np1 -i "${srcdir}/plymouth.patch"
46   # Regenerate configure files
47   autoreconf -i -f
49   ./configure --prefix=/usr --sysconfdir=/etc \
50       --libexecdir=/usr/lib/gdm \
51       --localstatedir=/var \
52       --with-at-spi-registryd-directory=/usr/lib/at-spi2-core \
53       --disable-scrollkeeper \
54       --disable-static \
55       --without-tcp-wrappers
56   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/      func_append compile_command " -Wl,-O1,--as-needed"\n      func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
57   make
60 package() {
61   cd "${srcdir}/${_pkgname}-${pkgver}"
62   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
63   install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
64   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${_pkgname}.schemas" --domain gdm ${pkgdir}/etc/gconf/schemas/*.schemas
66   for i in gdm-autologin.pam gdm-fingerprint.pam gdm.pam gdm-password.pam gdm-smartcard.pam gdm-welcome.pam;do
67       install -m644 "${srcdir}/${i}" "${pkgdir}/etc/pam.d/${i%.pam}"
68   done
70   install -Dm755 "${srcdir}/gdm" "${pkgdir}/etc/rc.d/gdm"
72   chmod 1770 "${pkgdir}/var/log/gdm"
73   chmod 700 "${pkgdir}/var/lib/gdm/.config/dconf"
74   rm -rf "${pkgdir}/var/run" "${pkgdir}/var/gdm" "${pkgdir}/etc/gconf"
76   #Add spool dir - needed for plymouth integration
77   mkdir -p ${pkgdir}/var/spool/gdm