updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / django-mailer2-git / PKGBUILD
blobba2f20ac71d55e3462a5a3b132b77eea1a3e2321
1 # Contributor: morakh
2 pkgname=django-mailer2-git
3 pkgver=20111123
4 pkgrel=1
5 pkgdesc="A reusable Django app for queuing the sending of email by Chris Beaven (a fork of James Tauber's django-mailer)"
6 arch=('any')
7 url="https://github.com/SmileyChris/django-mailer-2"
8 license=('MIT')
9 depends=('python' 'django')
10 makedepends=('git')
11 conflicts=('django-mailer')
12 provides=('django-mailer2')
13 source=()
14 md5sums=()
16 _gitname="django-mailer-2"
17 _gitroot="https://github.com/SmileyChris/django-mailer-2.git"
18 build() {
19   cd $startdir/src
20   
21   msg "Connecting to GIT server..."
22   
23   if [ -d $startdir/src/$_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot
28     cd $_gitname
29   fi
30   msg "GIT checkout done or server timeout"
32   python setup.py install --root=$pkgdir/