updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / osc-source_validator-git / PKGBUILD
blob8f9ede29028632ebba3c2195b8171c467bf182ce
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=osc-source_validator-git
4 pkgver=20110930
5 pkgrel=1
6 pkgdesc="OSC is checking valid sources on pre-checkin via this"
7 url="https://gitorious.org/opensuse/osc-source_validator"
8 arch=('any')
9 license=('GPL2')
10 makedepends=('git')
11 provides=('osc-source_validator')
12 conflicts=('osc-source_validator')
14 _gitroot="git://gitorious.org/opensuse/osc-source_validator.git"
15 _gitname="osc-source_validator"
17 package() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   cd "$srcdir/$_gitname"
32   install -d "${pkgdir}"/usr/lib/osc/source_validators
33   cp -a [0-9]* helpers "${pkgdir}"/usr/lib/osc/source_validators