1 # Maintainer: Mihai Militaru <mihai dot militaru at xmpp dot ro>
3 pkgname=lxsession-edit-git
6 pkgdesc="A session editor for the LXDE desktop."
10 depends=('gtk2>=2.12.0')
11 makedepends=('git' 'intltool' 'pkgconfig')
13 provides=('lxsession-edit')
14 conflicts=('lxsession-edit')
16 _gitroot='git://lxde.git.sourceforge.net/gitroot/lxde/lxsession-edit'
17 _gitname=lxsession-edit
22 msg "Connecting to $_gitroot..."
23 if [[ -d $_gitname ]]; then
24 cd $_gitname && git pull origin && cd ..
25 msg2 "Local files updated"
28 msg2 "Git checkout done"
31 rm -rf $_gitname-build
32 git clone $_gitname $_gitname-build
35 msg "Starting make..."
37 ./configure --prefix=/usr --sysconfdir=/etc
42 cd "$srcdir/$_gitname-build"
43 sed -i 's#_Name=Desktop Session#Name=Desktop Session#g' lxsession-edit.desktop
44 sed -i 's#_Comment=Manage applications#Comment=Manage applications#g' lxsession-edit.desktop
45 make DESTDIR="$pkgdir" install