updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / uimge-git / PKGBUILD
blob58195e1e71db46546018dd27d47fe8dd4d7b58ec
1 # Contributor: Apkawa <apkawa@gmail.com>
3 pkgname=uimge-git
4 pkgver=20101023
5 pkgrel=1
6 pkgdesc="Python picture uploader to different imagehostings"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/uimge/"
9 license=('GPL')
10 makedepends=('git' 'setuptools')
11 depends=('python2' 'python-pycurl')
12 optdepends=('guimge-git: - multiuploading files gui based on gtk')
13 provides=('uimge' 'uimge-svn' )
14 conflicts=('uimge' 'uimge-svn')
15 replaces=('uimge' 'uimge-svn')
17 _gitname="uimge"
18 _gitroot="git://github.com/Apkawa/uimge.git"
19 build() {
20   cd ${srcdir}
21   msg "Connecting to $_gitroot GIT server...."
23   if [ -d ${srcdir}/$_gitname ] ; then
24   cd $_gitname && git pull origin
25   msg "The local files are updated."
26   else
27   git clone $_gitroot
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
34   cd ${srcdir}/${_gitname}-build/
35   python2 setup.py build -f install -f --root ${pkgdir} --prefix=/usr || return 1