summaryrefslogtreecommitdiffstats
path: root/extra/lxdm/Pkgfile
blob: fcef839d96e8b5201b7eca90f5d80e011d4cbca5 (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
# Description:  Display manager leger (partie de lxde)
# URL: http://sourceforge.net/projects/lxdm/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: gtk, consolekit, xorg-server 
# Run on: 

name=lxdm
version=0.3.0
release=2
source=(http://downloads.sourceforge.net/project/lxdm/lxdm%20${version}/$name-$version.tar.gz
	lxdm-Xsession.patch lxdm.patch lxdm-pam.patch lxdm-deamon)

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

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

	sed -i -e "s/libexec/lib\/lxdm/" $PKG/etc/lxdm/lxdm.conf
}