updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pelican-git / PKGBUILD
blob3133542ce81b2465762e713877049c22a906d3b3
1 # Contributor: solsTiCe d'Hiver <solstice.dhiver@gmail.com>
3 pkgname=pelican-git
4 pkgver=20111009
5 pkgrel=2
6 pkgdesc="Static blog generator in python, using ReST syntax"
7 arch=('any')
8 url="http://alexis.notmyidea.org/pelican/"
9 license=("GPL3")
10 depends=('python2-jinja' 'python-feedgenerator' 'python2-pygments' 'python2-pytz' 'docutils' 'python-markdown')
11 makedepends=('git')
12 conflicts=('pelican')
13 replaces=('pelican')
14 source=()
16 _gitroot="https://github.com/ametaireau/pelican.git"
17 _gitname="pelican"
19 build() {
20         cd "$srcdir"
21         msg "Connecting to GIT server...."
23         if [ -d $_gitname ] ; then
24                 cd $_gitname && git pull origin
25                 msg "The local files are updated."
26         else
27                 git clone $_gitroot $_gitname
28         fi
30         msg "GIT checkout done or server timeout"
31         msg "Starting make..."
33         rm -rf "$srcdir/$_gitname-build"
34         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36         cd "$srcdir/$_gitname-build"
37         python2 ./setup.py install --root=$pkgdir
38         rm -f $pkgdir/usr/bin/*.bat