updated on Wed Jan 11 16:09:51 UTC 2012
[aur-mirror.git] / hyde-git / PKGBUILD
blob010f63b456d3dc58c886d6154fff59547fb83ff7
1 # Maintainer:  M0Rf30
3 pkgname=hyde-git
4 pkgver=20111110
5 pkgrel=1
6 pkgdesc="Hyde is a static website generator powered by Python & Django."
7 url="http://ringce.com/hyde"
8 arch=(any)
9 license=('MIT')
10 depends=('python2' 'python2-distribute' 'python-markdown' 
11          'django' 'python2-yaml' 'pyrss2gen' 'python2-cherrypy' 'python2-pygments')
12 makedepends=('python2')
13 conflicts=()
14 replaces=(hyde)
15 backup=()
17 _gitroot="git://github.com/hyde/hyde.git"
18 _gitname="hyde"
20 build() {
21    cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   cp -r "$srcdir/$_gitname"  "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
41   python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
42