1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=osc-source_validator-git
6 pkgdesc="OSC is checking valid sources on pre-checkin via this"
7 url="https://gitorious.org/opensuse/osc-source_validator"
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"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
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