updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rstblog-git / PKGBUILD
blob927f1caf45d0f6892be1f81e1841ab3241713bc2
1 # Contributor: nblock <nblock [/at\] archlinux DOT us>
3 pkgname=rstblog-git
4 pkgver=20111007
5 pkgrel=1
6 pkgdesc='NIH site generator'
7 arch=('any')
8 url="https://github.com/mitsuhiko/rstblog"
9 license=('BSD')
10 depends=('python2' 'python2-yaml' 'python2-werkzeug' 'python2-blinker' 'python-babel' 'python2-pygments' 'python2-jinja')
11 makedepends=('git')
13 _gitroot="git://github.com/mitsuhiko/rstblog.git"
14 _gitname="rstblog"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   python2 ./setup.py build
37 package() {
38   cd "$srcdir/$_gitname-build"
39   python2 setup.py install --skip-build --root=${pkgdir}/ --optimize=1
40   cp -r rstblog/templates ${pkgdir}/usr/lib/python2.7/site-packages/rstblog/
41
43 # vim:set ts=2 sw=2 et: