# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=lightdm pkgver=1.10.1 pkgrel=0 pkgdesc="A cross-desktop display manager" url="http://www.freedesktop.org/wiki/Software/LightDM" arch="all" license="GPL-3" depends="dbus" depends_dev="" makedepends="linux-pam-dev gtk+3.0-dev libxklavier-dev libxext-dev autoconf automake libtool gobject-introspection-dev itstool libgcrypt-dev" install="$pkgname.pre-install" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="https://launchpad.net/lightdm/${pkgver%.*}/$pkgver/+download/lightdm-$pkgver.tar.xz musl-language.patch musl-is-linux.patch musl-updwtmpx.patch disallow-guest.patch lightdm.initd" _builddir="$srcdir"/lightdm-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" CFLAGS="$CFLAGS -D_GNU_SOURCE" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-liblightdm-gobject \ --with-greeter-session=lightdm-gtk-greeter \ || return 1 # workaround build bug touch tests/src/lightdm-session make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la mv "$pkgdir"/usr/lib/locale "$pkgdir"/usr/share/ install -Dm755 "$srcdir"/lightdm.initd "$pkgdir"/etc/init.d/lightdm } md5sums="b237530f833bd3aafe613a85b76a5826 lightdm-1.10.1.tar.xz 9ec182924cb4c113c6ca70eb34e9192d musl-language.patch 83463e0720df1c4462fd988d48ae4edc musl-is-linux.patch 518dbd5723f352c19d59f3d645ee1636 musl-updwtmpx.patch 19a8a105b6d60c4c5c4e8138f57cb105 disallow-guest.patch 9eb01e4202919424face9bafbda4936c lightdm.initd" sha256sums="737123001a7ae2ab126c75f61dcebb767d082ec043c012285eab6fa6b0d6a58f lightdm-1.10.1.tar.xz 869834983f3dfd4818aac7b18b78e4c78a4e3bdf3740c7a21be2fa9b56e7664e musl-language.patch 65e8d3ae8f40c5803b89e66b2cbeb9b0dbc7303c398770a9e28680312b1864f5 musl-is-linux.patch 38bfafdf569407f98261f998936ce23152fa9e4c53b797f6f775c697c7c25ebe musl-updwtmpx.patch 97f658c6382133ce3456de59c70ebe1a850a1035cb871ff1e0885027559e56dd disallow-guest.patch cb9c10fe131073dbe589222beeab8fdb7fd28897001aa6b3c71eaab587fac3ef lightdm.initd" sha512sums="e235eeb03999d31d693c89a0e06fc33371d40f7c3c216942440a8498990b1efa0b5f19c72bc0ed18611a3b401b8ee521e2c2caa5e441247bad625466a8346278 lightdm-1.10.1.tar.xz 04df1146c8e33410c0fbbd016a3197e7e11b8ac5792f4578cb1a3fccba432294e1f4597b3fcab85f5167cac3dea8ead416872cf8c97cf381db5d0d7e9772d1a7 musl-language.patch 480b2757321212aa04c265ee052f2226059dc45c99a2e19c9dd06198bf03237a34ccdd87d997eb0e1addcf8e1d429a43e0d61e9e0b871f7dc28d203ee7fc2006 musl-is-linux.patch 46ab123c1b0e9d89020dbb50f73418e41aa9fb5c7614eaf1add0aca3496f2f178e7f0e485abbd0de2ed15297ff00099e37ef7f7d245d280ec356d5d7b09af77d musl-updwtmpx.patch 404a4cb4f58921e750aa29b3757c684ecb9d2b9146fd31b7359e49bf3a63400f757bb85d9f3ceabf0cbabc88bbbd18f11369713ccd7bae18574821c75af7143f disallow-guest.patch dfaf02f094dc621f4b094b766c9a10d836943506df5f3655bd00f0981b2e8466e829b25fb7ea4374570598ea4a12c1cdde3091280e9681fcc07b64229c2d86f1 lightdm.initd"