aboutsummaryrefslogblamecommitdiffstats
path: root/community/gdm/APKBUILD
blob: 85bc6797515a1783259865d768f6355341dd0b26 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                               
           
             
        

                                         
                                               

                                                                      
                                                                          


                                                                                          
                                                                              

                 
                         
 
         






                                         
                                  
                                    
                                     




                                                    

                                                



            
                                      
 



                                                                          

 
                                                                                                                                                               
                                                                                                                                           
                                                                                                                                           
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gdm
pkgver=3.36.3
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="21c3bba0ce5142362e3c86ccb05fc234d9356db295ed63f3c383bd7cc2b7a464bdcec08e472d31a339b5ffbfeaed4db72ebbdeae2e7a71effdeef8c52b53830b  gdm-3.36.3.tar.xz
879b6323c16a235dbdfdb670b932a30e0504253cf7a87229ba846ad50ffb5a4541573d4ba8551f19c88edbace81c7f8f164b90cf93f1a2600c71477a54c1e221  gdm.initd
f836cf0acdf148f2ae09ac28251b5126ce597f08254c43b1ec77596f75e1a3229926116c13f98554625be763e8d28415b27bd679b0a5de9f86bdca7857054c82  Xsession"