# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=lightdm pkgver=1.26.0 pkgrel=1 pkgdesc="A cross-desktop display manager" url="https://www.freedesktop.org/wiki/Software/LightDM" arch="all" license="GPL-3.0-or-later" depends="dbus xinit accountsservice" makedepends="linux-pam-dev gtk+3.0-dev libxext-dev libxklavier-dev autoconf automake libtool gobject-introspection-dev itstool libgcrypt-dev libxml2-utils" install="$pkgname.pre-install" pkgusers="lightdm" pkggroups="lightdm" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-openrc" source="https://github.com/CanonicalLtd/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz musl-language.patch musl-is-linux.patch musl-updwtmpx.patch disallow-guest.patch allow-null-passwd.patch lightdm.initd" build() { cd "$builddir" export CFLAGS="$CFLAGS -D_GNU_SOURCE" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-liblightdm-gobject \ --disable-tests \ --with-greeter-session=lightdm-gtk-greeter make } package() { cd "$builddir" make DESTDIR="$pkgdir" install ln -s /etc/X11/xinit/Xsession "$pkgdir"/usr/bin/lightdm-session install -Dm755 "$srcdir"/lightdm.initd "$pkgdir"/etc/init.d/lightdm install -o lightdm -g lightdm -d "$pkgdir"/var/lib/lightdm-data rm -rf "$pkgdir"/etc/apparmor.d } sha512sums="67c0671753587493ed064b66f94be58853028287c914d1101e66499bebf1408e14d33245887ce89d1c4931960225ea3984e5e625b22dc4e3020be34a3087d8e7 lightdm-1.26.0.tar.xz 592d630bdabeed304f8b677ceb0ebd2a6ab0930baae473814aafb0d58b7e28a79c8c667f18a656a460132c48a9fee90be7eebd50f835ea641d6d99387b28310a musl-language.patch aa33888f61b61f6c8082c77dc0b539fa14fb395c17e70b825ba88af7bb6adaad8f99583342a77442c60c105c1b83dd6eb0547fbddb43dcd767d9ad2c65ca2baf musl-is-linux.patch 876088f21e502630c7d13343b03785d3327727c25657690c8e1cff5428a36944eb75d538f24ab4f5b11f931d8fad51241f25046da370eb5868aa8d2860be4eb2 musl-updwtmpx.patch c5bf8cfc0b4c4f95d9c9a3fa517b6c8ec90e02d84fb4498176b4745ed6089576fab536e9a3595200443811f05f2d47ac5e7c0205c878d9c23eff4dda7093ad6c disallow-guest.patch 7d31a5d7034e665a86a7067654c8865fa5db98b58c32afab6077d589c0cd1351bfbfb4625e5e1b2ccf8c98bc08e7c97412c528311c3c32da0b8e45916f8de767 allow-null-passwd.patch 212fb5830e6c76a3e396d38d55ad03b5a4a49f4ddc48fe60976612cee1ab5f0cc9867129e676929b421557be84c4db6699850a0408de9b16bd5ef34b6c7fbd51 lightdm.initd"