#Maintainer 1: Thorsten Muehlfelder <thenktor(at)gmx.de>
#Maintainer 2: Tomoki Tsuchiya <hydrangea_and_snail~at~hotmail~dot~com>

pkgname=lxsession
pkgver=0.4.5
pkgrel=1tt
source=("http://mesh.dl.sourceforge.net/sourceforge/lxde/lxsession-$pkgver.tar.gz" "lxde.sh" "lxde.csh")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
sourcetemplate=http://people.salixos.org/tsuren/packages/13.37/$pkgname/
url=http://lxde.org
options=('noautodotnew')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (a session manager for LXDE)"
"LXSession is a lightweight X11 session manager with fewer"
"dependencies, designed for use with LXDE."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc
	make -j3 || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/etc/profile.d
	cp $startdir/src/lxde.sh $startdir/pkg/etc/profile.d/
	cp $startdir/src/lxde.csh $startdir/pkg/etc/profile.d/
	chmod 755 $startdir/pkg/etc/profile.d/*
}