1 # Contributor: FallenWizard <fallenwizard@archlinux.us>
5 pkgdesc="Script to upload files to omploader.org"
7 url="http://omploader.org"
9 depends=('ruby' 'curl')
15 _gitroot="git://git.omp.am/omploader.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
40 install -D -m755 ompload ${pkgdir}/usr/bin/ompload