updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / lxadmin-git / PKGBUILD
blob70f0223a948bb5c1858b578f6c2299dc3241c1f7
1 pkgname=lxadmin-git
2 pkgver=20120117
3 pkgrel=1
4 pkgdesc="A collection of tools to configure your desktop under LXDE"
5 arch=('i686' 'x86_64')
6 url="http://lxde.org"
7 license=('GPL')
8 depends=('python')
9 makedepends=('git' 'intltool' 'pkgconfig' 'python' 'gnome-common')
10 source=('su-to-root'
11         'su-to-rootrc')
12 groups=('lxde-git')
14 _gitroot=http://github.com/gilir/LXAdmin.git
15 _gitname=LXAdmin
17 build() {
18   cd "$srcdir"
20   msg "Connecting to $_gitroot..."
21   if [[ -d $_gitname ]]; then
22     cd $_gitname && git pull origin && cd ..
23     msg2 "Local files updated"
24   else
25     git clone $_gitroot
26     msg2 "Git checkout done"
27   fi
29   rm -rf $_gitname-build
30   git clone $_gitname $_gitname-build
31   cd $_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
38   make || return 1
41 package() {
42   cd "$srcdir/$_gitname-build"  
43   make DESTDIR="$pkgdir" install || return 1
44   touch $pkgdir/usr/lib/python2.7/site-packages/lxadmin/__init__.py
45   mkdir $pkgdir/etc/
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/* ; 
49     do
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
57     done
58   sed -e  's!/usr/bin/python!/usr/bin/python2!' -i  $pkgdir/usr/bin/*
60 md5sums=('a0c9efb3b13723743240cf28cd654e90'
61          'f8de61c5fd70720848458facd056ca29')