# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=lxdm pkgver=0.3.0 pkgrel=0 pkgdesc="LXDE desktop login manager" url="http://wiki.lxde.org/en/LXDM" license="GPL" depends= makedepends="autoconf automake gtk+-dev consolekit-dev" install= source="http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz lxdm.initd lxdm-execinfo.patch lxdm-nopam.patch" arch="all" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg "Applying $i..." patch -s -p1 -N -i "$srcdir"/$i || return 1 ;; esac done autoreconf } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --without-pam make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } md5sums="1d0688e088edab7c3c563263eb2f9654 lxdm-0.3.0.tar.gz 27f8ef5c16ae1234365ab318e2c9001c lxdm.initd 045da38f5bb183ccacc489ea7e50e927 lxdm-execinfo.patch 0d44e8cd97894fd680e3f09e680c3481 lxdm-nopam.patch"