summaryrefslogtreecommitdiffstats
path: root/lxdm/Pkgfile
blob: 3db44a49fc431e0171250c8b3a4e5620fb4f7220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Description: Gestionnaire de sessions très légé (partie de lxde)
# URL: http://sourceforge.net/projects/lxdm/
# Maintainer: dgod dot osa at gmail dot com
# Packager: lesibel at free dot fr
# Depends on: xorg-libxinerama, xorg-libxrandr, xorg-libxcursor, xorg-libxdamage, gtk, consolekit
# Run on: gtk,consolekit

name=lxdm
version=0.4.1
release=2
source=(http://sourceforge.net/projects/lxde/files/lxdm/LXDM%200.4.1/$name-$version.tar.gz
	lxdm-Xsession.patch lxdm-02.patch lxdm-pam.patch \
	http://nutyx.meticul.eu/files/patchs/xfdesktop/pakxe-01.xcf.png)

build() {
	cd $name-$version
	./configure --sysconfdir=/etc \
		--prefix=/usr \
		--libexecdir=/usr/lib/lxdm
	make
  	
	patch -Np0 < ../lxdm-02.patch
	patch -Np0 < ../lxdm-Xsession.patch

	make DESTDIR=$PKG install
	
	install -m644 $SRC/lxdm-pam.patch $PKG/etc/pam.d/lxdm
		
	mkdir -p $PKG/var/run/lxdm
	mkdir -p $PKG/var/lib/lxdm

	sed -i -e "s/local\/libexec/lib\/lxdm/" $PKG/etc/lxdm/lxdm.conf
	mkdir -p $PKG/usr/share/backgrounds
	install -m644 $SRC/pakxe-01.xcf.png \
	$PKG//usr/share/backgrounds/default.png
}