updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / lurklib-git / PKGBUILD
blobc2caaaa3397a7503db755a6cb4f33bb1e35e2f04
1 # Contributor: LK- <lk07805@gmail.com>
2 # Maintainer: LK- <lk07805@gmail.com>
3 pkgname=lurklib-git
4 pkgver=20110614
5 pkgrel=1
6 pkgdesc="Lurklib is a threading-safe, event-driven IRC library designed for creating anything from bots to full-fledged IRC clients."
7 arch=(any)
8 url="https://github.com/LK-/lurklib/"
9 license=('GPL')
10 depends=('python')
11 optdepends=('python2: for Python 2 support')
12 _gitroot="git://github.com/LK-/lurklib.git"
13 _gitname="master"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
32   python setup.py install --root=$pkgdir/
33   if [[ -e /usr/bin/python2 ]]; then
34     python2 setup.py install --root=$pkgdir/
35   fi