	make DESTDIR=$PKG install
	
	rm -rf $PKG/usr/man
	rm -rf $PKG/usr/share/gtk-doc
	rm -rf $PKG/usr/share/help
	
	cat $SRC/Xsession > $PKG/etc/lightdm/Xsession
	chmod 755 $PKG/etc/lightdm/Xsession

	rm -rf $PKG/etc/apparmor.d
	rm -rf $PKG/etc/init

	#mv $PKG/etc/lightdm/lightdm.conf $PKG/etc/lightdm/lightdm.conf.new
	#mv $PKG/etc/lightdm/users.conf $PKG/etc/lightdm/users.conf.new
	#mv $PKG/etc/lightdm/keys.conf $PKG/etc/lightdm/keys.conf.new

	#mv $PKG/etc/pam.d/lightdm $PKG/etc/pam.d/lightdm.new
	#mv $PKG/etc/pam.d/lightdm-autologin $PKG/etc/pam.d/lightdm-autologin.new
	#mv $PKG/etc/pam.d/lightdm-greeter $PKG/etc/pam.d/lightdm-greeter.new

	# Remove systemd entries from pam files
	sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm
	sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm-autologin
	sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm-greeter

	# Fix session-wrapper in config
	sed -i 's@^.*session-wrapper.*$@session-wrapper=/etc/lightdm/Xsession@' $PKG/etc/lightdm/lightdm.conf
    
    if ! getent group lightdm 1>/dev/null 2>/dev/null ; then
		groupadd -g 800 lightdm
	elif ! getent passwd lightdm 1>/dev/null 2>/dev/null ; then
		useradd -d /var/lib/lightdm -s /bin/false -u 800 -g 800 lightdm
	fi
    
	mkdir -p $PKG/var/lib/lightdm
	#chown lightdm:lightdm $PKG/var/lib/lightdm
	mkdir -p $PKG/var/lib/lightdm-data
	#chown lightdm:lightdm $PKG/var/lib/lightdm-data
	
	# servis kurulması
	#cd /sources/milis.git/ayarlar/servisler
	#make DESTDIR=$PKG kur-lightdm 