updated on Tue Jan 24 08:00:27 UTC 2012
[aur-mirror.git] / pilaunch-git / PKGBUILD
blobbc13d37f1bb1a78d15e3cea1bfe93375ea1e41c0
1 pkgname=pilaunch-git
2 pkgver=20110628
3 pkgrel=1
4 pkgdesc="Menua/launcher with additional functionality (calc, mpd client, launch urls and web searches)"
5 arch=(any)
6 url=https://github.com/vincekd/Pilaunch
7 license=(GPL)
8 depends=(pygtk)
9 optdepends=("python-mpd: for the built in mpd client")
10 makedepends=(git)
11 install=$pkgname.install
13 _gitroot=https://github.com/vincekd/Pilaunch.git
14 _gitname=pilaunch
16 build() {
17         cd "$srcdir"
18         msg "Connecting to GIT server...."
19         
20         if [ -d ${_gitname} ] ; then
21                 cd ${_gitname} && git pull origin
22                 msg "The local files are updated."
23         else
24                 git clone ${_gitroot} ${_gitname}
25         fi
26         
27         msg "GIT checkout done or server timeout"
29 package() {
30         install -Dm755 "${srcdir}/${_gitname}/${_gitname}/${_gitname}.py" "${pkgdir}/usr/bin/${_gitname}"
31         install -Dm644 "${srcdir}/${_gitname}/${_gitname}/piconfig.py" "${pkgdir}/usr/share/${_gitname}/piconfig.py"
32         install -Dm644 "${srcdir}/${_gitname}/${_gitname}/pilaunchextra.py" "${pkgdir}/usr/share/${_gitname}/pilaunchextra.py"