updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / supybot-git / PKGBUILD
blob81d7600f92f580375a523345cd4e891f8d3edcb4
1 #Contributor: LinkMaster03 linkmaster032000 at gmail dot com
2 pkgname=supybot-git
3 pkgver=20100103
4 pkgrel=1
5 pkgdesc="A cross-platform IRC bot written in Python"
6 arch=('i686' 'x86_64')
7 url="http://sourceforge.net/projects/supybot/"
8 license=('custom')
9 depends=('python>=2.5')
10 optdepends=('python-pysqlite-legacy')
11 conflicts=('supybot')
12 makedepends=('git')
13 options=()
14 source=()
15 md5sums=() 
17 _git_tree="git://supybot.git.sourceforge.net/gitroot/supybot/supybot"
18 _git_name="supybot"
20 build() {
21   cd $srcdir
22   msg "Connecting to GIT server...."
24   if [ -d $_git_name ] ; then
25      cd $_git_name && git pull origin
26      msg "The local files are updated."
27   else
28         git clone $_git_tree
29   fi
31   msg "Clone done, starting make..."
33   rm -rf "$srcdir/$_git_name-build"
34   cp -a "$srcdir/$_git_name" "$srcdir/${_git_name}-build"
35   cd "$srcdir/$_git_name-build"
37   mkdir -p $pkgdir/usr/lib/python2.6/site-packages
38   mkdir -p $pkgdir/usr/bin
40   python setup.py install --prefix=$pkgdir/usr || return 1
42   mkdir -p $pkgdir/usr/share/licenses/supybot-git/
43   install -m644 LICENSE $pkgdir/usr/share/licenses/supybot-git/ || return 1
45   rm -rf $srcdir/${_git_name}-build