aboutsummaryrefslogtreecommitdiffstats
path: root/community/gdm/APKBUILD
blob: 0f14efc7d23c706f2955ac1035d9dae5987344da (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gdm
pkgver=3.38.2.1
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>=1.4 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
	meson"
subpackages="$pkgname-dev $pkgname-lang $pkgname-openrc"
options="!check" # Causes circular dep with gnome-shell
source="https://download.gnome.org/sources/gdm/${pkgver%.*.*}/gdm-$pkgver.tar.xz
	0004-pam-arch-Update-to-match-pambase-20200721.1-2.patch
	remove-systemd-dep.patch
	gdm.initd
	Xsession"
install="gdm.pre-install"

build() {
	abuild-meson \
		-Ddefault-pam-config=arch \
		-Dpam-mod-dir=/lib/security \
		-Dselinux=disabled \
		-Dlibaudit=disabled \
		-Dsystemdsystemunitdir=/DELETEME \
		-Dsystemduserunitdir=/DELETEME \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	rm -rf "$pkgdir"/DELETEME

	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="fea210382d5760050d211650b0e2eaf18b39e5e67fef98d9a7fa53245b134c62235265bc48438d1bc50c729414ae027d50ec6007a15c6f5aed3b8e927a844aed  gdm-3.38.2.1.tar.xz
84eaadf000984d547426e853ce2dc380314c707d8aae926fb127f68b6c6af886b0aec05db9ae21a394f94beb81924b00424f082a606d97bde5edfced840fe4fa  0004-pam-arch-Update-to-match-pambase-20200721.1-2.patch
695d3c0c56d10baabb24b9e43bc14ab44542cb44a5aed15d471d06eecdfe1313678c854a640a151de239b4a30071dc781cc616296a2785ca43512a31403cdb3c  remove-systemd-dep.patch
cd4c8f80e37dc362727bd535cbe1d3917f2bc47d52af717595e19709051ab5f27c0f650195152ccd1a7e5e2f886e4e8bc60287f05dcd81e84237c7f78c89223f  gdm.initd
f836cf0acdf148f2ae09ac28251b5126ce597f08254c43b1ec77596f75e1a3229926116c13f98554625be763e8d28415b27bd679b0a5de9f86bdca7857054c82  Xsession"