1 # Maintainer.: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
4 _pkgname="${pkgname%-*}"
7 pkgdesc="Intelligent greylisting daemon for Postfix"
11 depends=("python2" "python2-pyspf" "twisted")
12 optdepends=("python-psycopg2: required for PostgreSQL support"
13 "mysql-python: required for MySQL support")
16 _gitroot="git://github.com/evgeni/bley.git"
17 _gitname="${_pkgname}"
23 msg "Connecting to GIT server..."
24 if [ -d "${_gitname}" ]; then
25 (cd "${_gitname}" && git pull origin)
26 msg "The local repository was updated."
28 git clone "${_gitroot}" "${_gitname}"
29 msg "The remote repository was cloned."
31 msg "GIT sync done or server timeout."
33 if [ -d "${_gitname}-build" ]; then
34 rm -rf "${_gitname}-build"
36 cp -rf "${_gitname}" "${_gitname}-build"
37 cd "${_gitname}-build"
40 python2 setup.py build
44 cd "${srcdir}/${_gitname}-build"
46 python2 setup.py install --root="${pkgdir}"