updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / ompload-git / PKGBUILD
blob63321427527d15b6d736b4bc202449e933db313d
1 # Contributor: FallenWizard <fallenwizard@archlinux.us>
2 pkgname=ompload-git
3 pkgver=20110203
4 pkgrel=1
5 pkgdesc="Script to upload files to omploader.org"
6 arch=("any")
7 url="http://omploader.org"
8 license=('GPL')
9 depends=('ruby' 'curl')
10 makedepends=('git')
11 provides=('ompload')
12 conflicts=('ompload')
13 md5sums=() 
15 _gitroot="git://git.omp.am/omploader.git"
16 _gitname="omploader"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
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"
36   #
37   # BUILD HERE
38   #
40   install -D -m755 ompload ${pkgdir}/usr/bin/ompload
41