updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / urlol-git / PKGBUILD
blob2c17bab8f46b28606c5fcf17cca94fefdf5346e7
2 #Maintainer: Yichao Yu <yyc1992@gmail.com>
3 #Contributor: Yichao Yu <yyc1992@gmail.com>
5 pkgname=urlol-git
6 pkgver=20110627
7 pkgrel=1
8 install=('urlol.install')
10 pkgdesc="Desktop Utility to open url files, git version"
11 arch=('any')
12 provides=('urlol')
13 conflicts=('urlol')
14 url="https://github.com/yuyichao/urlol"
15 license=('GPL3')
16 depends=('desktop-file-utils' 'xdg-utils')
17 makedepends=('git')
19 _gitroot='git://github.com/yuyichao/urlol.git'
20 _gitname='urlol'
21 package()
23     cd "$srcdir"
25     msg "Connecting to github.com"
27     if [ -d "$startdir/src/$_gitname" ] ;then
28         cd "$startdir/src/$_gitname" && git pull origin
29         msg "The local files are updated."
30     else
31         git clone "$_gitroot"
32     fi
33     msg "GIT checkout done or server timeout"
35     cd "$srcdir/$_gitname"
37     git checkout master
39     ./install -p "$pkgdir" --nopost