updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qtile-git / PKGBUILD
blob14d73457f690e59713f94cb9deafc738ead486b8
1 # Maintainer: roger <roger@rogerpc.com.ar>
3 pkgname=qtile-git
4 pkgver=20110709
5 pkgrel=1
6 pkgdesc="A full-featured, pure-Python tiling window manager. (git version)"
7 arch=('i686' 'x86_64')
8 url="http://www.qtile.org/index.html"
9 license=('MIT')
10 depends=('python2' 'cairo-xcb' 'pycairo-xcb-git' 'pygtk' 'xpyb-git')
11 makedepends=()
12 provides=('qtile=0.4')
13 conflicts=('qtile')
14 source=()
15 md5sums=()
17 _gitroot="git://github.com/cortesi/qtile.git"
18 _gitname="qtile"
20 build() {
21   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname
27     git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Preparing sources..."
36   if [ -d $srcdir/$_gitname-build ] ; then
37     rm -rf "$srcdir/$_gitname-build"
38   fi
40   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
43 package() {
44   cd "$srcdir/$_gitname-build"
46   # license
47   msg "Copying license..."
48   install -D -m 644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
50   # example config
51   msg "Copying example config"
52   mkdir -p $pkgdir/usr/share/$pkgname/examples/
53   cp -r examples/config $pkgdir/usr/share/$pkgname/examples/
55   # install
56   msg "Running setup.py"
57   python2 setup.py install --root=${pkgdir} --prefix=/usr