# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=lxdm pkgver=0.4.1 pkgrel=0 pkgdesc="LXDE desktop login manager" url="http://wiki.lxde.org/en/LXDM" license="GPL" depends="bash" makedepends="autoconf automake gtk+-dev consolekit-dev" install= source="http://downloads.sourceforge.net/lxde/$pkgname-$pkgver.tar.gz background.png lxdm.initd" 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 # Replace the default background with the Alpine default one sed -i 's/file="wave.svg"/file="background.png"/' "$_builddir"/data/themes/Industrial/gtkrc 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 # Install the custom Alpine background install -m644 -D "$srcdir"/background.png "$pkgdir"/usr/share/lxdm/themes/Industrial/background.png } md5sums="8da1cfc2be6dc9217c85a7cf51e1e821 lxdm-0.4.1.tar.gz a510afe725112947d16f6c1f0602effe background.png d6455d172d5d897f6bfcefe9a1a632c7 lxdm.initd"