updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / typogrify-hyde / PKGBUILD
blob5cf0ef7569ea663a0c487bb154109f47866c6351
1 # Contributor: Axilleas P <markelos@archlinux.gr>
3 pkgname=typogrify-hyde
4 pkgver=1.0.1a
5 pkgrel=2
6 pkgdesc="Typography related template filters for Django & Jinja2 applications"
7 url="https://github.com/hyde/typogrify"
8 license=('BSD')
9 arch=(any)
10 depends=('django>=1.0' 'python2-smartypants>=1.6')
11 makedepends=('python2' 'git')
12 conflicts=('typogrify')
15 _gitroot="git://github.com/hyde/typogrify.git"
16 _gitname="typogrify-hyde"
18 build() {
20  cd $srcdir
21   msg "Connecting to the GIT server...."
23   if [[ -d $srcdir/$_gitname ]] ; then
24     cd $_gitname
25     git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
31   msg "GIT checkout done"
32   msg "Starting make..."
34   git clone $srcdir/$_gitname $srcdir/$_gitname-build
35   cd $srcdir/$_gitname-build
37    
38   #hyde expects typogrify-hyde 
39    sed -i "s/name='typogrify'/name='typogrify-hyde'/" setup.py
40    python2 setup.py install --root="${pkgdir}" -O1
41