4 pkgdesc="A collection of tools to configure your desktop under LXDE"
9 makedepends=('git' 'intltool' 'pkgconfig' 'python' 'gnome-common')
14 _gitroot=http://github.com/gilir/LXAdmin.git
20 msg "Connecting to $_gitroot..."
21 if [[ -d $_gitname ]]; then
22 cd $_gitname && git pull origin && cd ..
23 msg2 "Local files updated"
26 msg2 "Git checkout done"
29 rm -rf $_gitname-build
30 git clone $_gitname $_gitname-build
33 msg "Starting make..."
34 # sed -i -e 's:AS_AC_EXPAND:#AS_AC_EXPAND:' configure.ac
35 ./autogen.sh || return1
36 # gnome-autogen.sh || return 1
37 ./configure --prefix=/usr --sysconfdir=/etc || return 1
42 cd "$srcdir/$_gitname-build"
43 make DESTDIR="$pkgdir" install || return 1
44 touch $pkgdir/usr/lib/python2.7/site-packages/lxadmin/__init__.py
46 install -m 755 $startdir/su-to-root $pkgdir/usr/bin/
47 install -m 644 $startdir/su-to-rootrc $pkgdir/etc
48 for k in $pkgdir/usr/share/locale/* ;
50 cp $k/LC_MESSAGES/lxadmin.mo $k/LC_MESSAGES/lxcc.mo ;
51 # cp $k/LC_MESSAGES/lxadmin.mo $k/LC_MESSAGES/lxdmconf.mo
52 # cp $k/LC_MESSAGES/lxadmin.mo $k/LC_MESSAGES/lxfontconfig.mo
53 # cp $k/LC_MESSAGES/lxadmin.mo $k/LC_MESSAGES/lxkeyboardconf.mo
54 # cp $k/LC_MESSAGES/lxadmin.mo $k/LC_MESSAGES/lxscreenshot.mo
55 # cp $k/LC_MESSAGES/lxadmin.mo $k/LC_MESSAGES/lxservices.mo
56 # cp $k/LC_MESSAGES/lxadmin.mo $k/LC_MESSAGES/openbox-keyconf.mo
58 sed -e 's!/usr/bin/python!/usr/bin/python2!' -i $pkgdir/usr/bin/*
60 md5sums=('a0c9efb3b13723743240cf28cd654e90'
61 'f8de61c5fd70720848458facd056ca29')