blob: 002a145b56eb72a63ce95824bb923954b745147d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# $Id: PKGBUILD 210439 2014-04-14 20:06:13Z jgc $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgbase=gdm
pkgname=(gdm libgdm)
pkgver=3.12.0
pkgrel=1
pkgdesc="Gnome Display Manager"
arch=(i686 x86_64)
license=(GPL)
url="http://www.gnome.org"
depends=(gnome-shell gnome-session upower xorg-xrdb xorg-server xorg-xhost)
makedepends=(itstool intltool yelp-tools gobject-introspection)
checkdepends=('check')
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz
0001-Add-Arch-Linux-PAM-config-files.patch)
sha256sums=('74889819a0c55577fd04236b5308de5f1fcf1992b221c71d02d91a1e564a5d87'
'e158ea240e90113cf1d7790a623c3d0b64e459f76b0e9135f9f536cdb22c0c0e')
prepare() {
cd $pkgbase-$pkgver
patch -Np1 -i ../0001-Add-Arch-Linux-PAM-config-files.patch
AUTOPOINT='intltoolize --automake -c' autoreconf -fi
}
build() {
cd $pkgbase-$pkgver
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--libexecdir=/usr/lib/gdm \
--localstatedir=/var \
--disable-static \
--disable-schemas-compile \
--with-at-spi-registryd-directory=/usr/lib/at-spi2-core \
--with-check-accelerated-directory=/usr/lib/gnome-session \
--with-authentication-agent-directory=/usr/lib/polkit-gnome \
--with-gnome-settings-daemon-directory=/usr/lib/gnome-settings-daemon \
--without-tcp-wrappers \
--without-console-kit \
--with-systemd \
--with-default-pam-config=arch
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
make
}
check() {
cd $pkgbase-$pkgver
make check
}
package_gdm() {
depends+=(libgdm)
optdepends=('fprintd: fingerprint authentication')
backup=(etc/pam.d/gdm-autologin etc/pam.d/gdm-fingerprint etc/pam.d/gdm-launch-environment
etc/pam.d/gdm-password etc/pam.d/gdm-smartcard etc/gdm/custom.conf
etc/gdm/Xsession etc/gdm/PostSession/Default etc/gdm/PreSession/Default)
groups=(gnome)
install=gdm.install
cd $pkgbase-$pkgver
make DESTDIR="$pkgdir" install
chmod 711 "$pkgdir/var/log/gdm"
rm -r "$pkgdir/var/run"
### Split libgdm
make -C libgdm DESTDIR="$pkgdir" uninstall
mv "$pkgdir/usr/share/glib-2.0/schemas/org.gnome.login-screen.gschema.xml" "$srcdir"
}
package_libgdm() {
pkgdesc="GDM support library"
depends=(systemd glib2)
install=libgdm.install
cd $pkgbase-$pkgver
make -C libgdm DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/org.gnome.login-screen.gschema.xml" \
"$pkgdir/usr/share/glib-2.0/schemas/org.gnome.login-screen.gschema.xml"
}
|