updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / limnoria-git / PKGBUILD
blob553328a38c015c9a846842668e4ab76c38ba76d4
1 #Contributor: Cravix
3 pkgname=limnoria-git
4 pkgver=20120122
5 pkgrel=1
6 pkgdesc="A modified version of Supybot"
7 arch=('i686' 'x86_64')
8 url="https://github.com/ProgVal/Limnoria"
9 license=('custom')
10 depends=('python2>=2.5' 'python-pysqlite' 'twisted')
11 makedepends=('git')
12 optdepends=('python2-pyopenssl: SSL server support')
13 conflicts=('supybot')
14 provides=('supybot')
16 _git_tree="git://github.com/ProgVal/Limnoria.git"
17 _git_name="Limnoria"
19 build() {
20   cd $srcdir
21   msg "Connecting to GIT server...."
23   if [ -d $_git_name ] ; then
24         cd $_git_name && git pull origin
25         msg "The local files are updated."
26   else
27         git clone $_git_tree
28   fi
30   msg "Clone done, starting make..."
32   rm -rf "$srcdir/$_git_name-build"
33   cp -a "$srcdir/$_git_name" "$srcdir/${_git_name}-build"
34   cd "$srcdir/$_git_name-build"
36   python2 setup.py install --prefix=$pkgdir/usr || return 1
38   rm -rf $srcdir/${_git_name}-build