1 # Maintainer: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
4 _pkgname="${pkgname:0:7}"
7 pkgdesc="OpenVZ disk quota control utility"
9 url="http://openvz.org"
11 makedepends=("gcc" "git")
12 conflicts=("${_pkgname}")
13 provides=("${_pkgname}")
17 _gitroot="git://git.openvz.org/pub/${_pkgname}"
18 _gitname="${_pkgname}"
24 msg "Connecting to GIT server..."
25 if [ -d "${_gitname}" ]; then
26 (cd "${_gitname}" && git pull origin)
27 msg "The local repository was updated."
29 git clone "${_gitroot}" "${_gitname}"
30 msg "The remote repository was cloned."
32 msg "GIT sync done or server timeout."
34 if [ -d "${_gitname}-build" ]; then
35 rm -rf "${_gitname}-build"
37 cp -rf "${_gitname}" "${_gitname}-build"
38 cd "${_gitname}-build"
42 make DESTDIR="${pkgdir}" install
46 cd "${srcdir}/${_pkgname}-build"
48 make DESTDIR="${pkgdir}" install