updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / vzquota-git / PKGBUILD
bloba97f6e476a95b974f299a78731228477f3fb2d74
1 # Maintainer: Lucky <aur.archlinux.org [at] lucky.take0ver [dot] net>
3 pkgname=vzquota-git
4 _pkgname="${pkgname:0:7}"
5 pkgver=20110607
6 pkgrel=1
7 pkgdesc="OpenVZ disk quota control utility"
8 arch=("i686" "x86_64") 
9 url="http://openvz.org"
10 license=("GPL")
11 makedepends=("gcc" "git")
12 conflicts=("${_pkgname}")
13 provides=("${_pkgname}")
14 source=()
15 md5sums=()
17 _gitroot="git://git.openvz.org/pub/${_pkgname}"
18 _gitname="${_pkgname}"
20 build() {
21   cd "${srcdir}"
23   #GIT {{{
24   msg "Connecting to GIT server..."
25   if [ -d "${_gitname}" ]; then
26     (cd "${_gitname}" && git pull origin)
27     msg "The local repository was updated."
28   else
29     git clone "${_gitroot}" "${_gitname}"
30     msg "The remote repository was cloned."
31   fi
32   msg "GIT sync done or server timeout."
33   cd "${srcdir}"
34   if [ -d "${_gitname}-build" ]; then
35     rm -rf "${_gitname}-build"
36   fi
37   cp -rf "${_gitname}" "${_gitname}-build"
38   cd "${_gitname}-build"
39   #}}}
41   make
42   make DESTDIR="${pkgdir}" install
45 package() {
46   cd "${srcdir}/${_pkgname}-build"
48   make DESTDIR="${pkgdir}" install