updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / dmenu-python-git / PKGBUILD
blobae6bf46c3c0a865a80beea42320c76f854b30f82
1 # Maintainer: Sara <sara @ archlinux dot us>
2 pkgname=dmenu-python-git
3 pkgver=20110120
4 pkgrel=1
5 pkgdesc="Dmenu wrappper which sorts applications by usage, indexes files, and opens files by extension."
6 arch=(i686 x86_64)
7 url="https://bbs.archlinux.org/viewtopic.php?pid=529204"
8 license=('BSD')
9 depends=(dmenu) 
10 makedepends=(git)
11 provides=(dmenu-launcher)
13 _gitroot=git://github.com/TheWanderer/dmenu-python.git
14 _gitname=dmenu-python
16 build(){
17         cd "$srcdir"
18         
19         if [[ -d $_gitname ]]; then
20                 cd "$_gitname"
21                 git pull origin
22                 msg "The local files are updated."
23         else
24                 git clone "$_gitroot" 
25                 cd "$_gitname"
26         fi
27         msg "Checkout done or server timeout"
30 package(){
31         cd "$srcdir/$_gitname"
32         sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' launch.py
33         install -D launch.py "$pkgdir"/usr/bin/dmenu-launcher