updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / bley-git / PKGBUILD
blob4187954e961a629a995eb68cd599cad3330edc55
1 # Maintainer.: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
3 pkgname=bley-git
4 _pkgname="${pkgname%-*}"
5 pkgver=20110831
6 pkgrel=1
7 pkgdesc="Intelligent greylisting daemon for Postfix"
8 url="http://bley.mx"
9 license=("BSD")
10 arch=("any")
11 depends=("python2" "python2-pyspf" "twisted")
12 optdepends=("python-psycopg2: required for PostgreSQL support"
13             "mysql-python: required for MySQL support")
14 makedepends=("git")
16 _gitroot="git://github.com/evgeni/bley.git"
17 _gitname="${_pkgname}"
19 build() {
20   cd "${srcdir}"
22   #GIT {{{
23   msg "Connecting to GIT server..."
24   if [ -d "${_gitname}" ]; then
25     (cd "${_gitname}" && git pull origin)
26     msg "The local repository was updated."
27   else
28     git clone "${_gitroot}" "${_gitname}"
29     msg "The remote repository was cloned."
30   fi
31   msg "GIT sync done or server timeout."
32   cd "${srcdir}"
33   if [ -d "${_gitname}-build" ]; then
34     rm -rf "${_gitname}-build"
35   fi
36   cp -rf "${_gitname}" "${_gitname}-build"
37   cd "${_gitname}-build"
38   #}}}
40   python2 setup.py build
43 package() {
44   cd "${srcdir}/${_gitname}-build"
46   python2 setup.py install --root="${pkgdir}"