aboutsummaryrefslogtreecommitdiffstats
path: root/community/gdm/APKBUILD
blob: 156fce9c3db22e7a04010e4aae838a825a53c326 (plain) (blame)
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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gdm
pkgver=3.36.2
pkgrel=0
pkgdesc="GNOME display manager"
url="https://wiki.gnome.org/Projects/GDM"
arch="all !armhf !s390x !ppc64le !mips !mips64"
license="GPL-2.0-or-later"
depends="dconf linux-pam gnome-settings-daemon gnome-shell xorg-server
	xorg-server-xwayland xrdb gsettings-desktop-schemas gnome-session"
makedepends="dconf-dev gnome-desktop-dev accountsservice-dev libcanberra-dev linux-pam-dev
	intltool itstool libxml2-utils libsm-dev iso-codes nss-dev upower-dev elogind-dev"
subpackages="$pkgname-dev $pkgname-lang $pkgname-openrc"
source="https://download.gnome.org/sources/gdm/${pkgver%.*}/gdm-$pkgver.tar.xz
	gdm.initd
	Xsession"
install="gdm.pre-install"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static \
		--without-plymouth \
		--with-initial-vt=1 \
		--enable-wayland-support \
		--without-tcp-wrappers \
		--with-pid-file=/var/run/gdm.pid \
		--enable-authentication-scheme=pam \
		--with-default-pam-config=arch \
		--with-log-dir=/var/log/gdm \
		--with-pam-mod-dir=/lib/security
	make
}

package() {
	make DESTDIR="$pkgdir" install

	sed -i "s/pam_systemd\.so/pam_elogind.so/" "$pkgdir"/etc/pam.d/*

	install -m755 -D "$srcdir/Xsession" "$pkgdir"/etc/gdm
	install -m755 -D "$srcdir/$pkgname.initd" "$pkgdir"/etc/init.d/gdm
}

sha512sums="5c02f00ce20a5b7b426043ab26640dd0a54a57bbff7eb2e449195bc3d6e36ad464487424fdc5be72fc542265bff6877317e693f6221c95a987f86c7a5dc6893e  gdm-3.36.2.tar.xz
879b6323c16a235dbdfdb670b932a30e0504253cf7a87229ba846ad50ffb5a4541573d4ba8551f19c88edbace81c7f8f164b90cf93f1a2600c71477a54c1e221  gdm.initd
f836cf0acdf148f2ae09ac28251b5126ce597f08254c43b1ec77596f75e1a3229926116c13f98554625be763e8d28415b27bd679b0a5de9f86bdca7857054c82  Xsession"