Guest User

Untitled

a guest
May 11th, 2012
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Lubosz Sarnecki <lubosz at gmail com>
  2.  
  3. pkgname=django-haystack-git
  4. pkgver=20120511
  5. pkgrel=1
  6. pkgdesc="Modular search for Django."
  7. arch=(any)
  8. url="http://haystacksearch.org/"
  9. license=('MIT')
  10. depends=('python2' 'django')
  11. optdepends('python2-pysolr-git')
  12. makedepends=('git')
  13. source=()
  14. md5sums=()
  15.  
  16. _gitroot="git://github.com/toastdriven/django-haystack.git"
  17. _gitname="django-haystack"
  18.  
  19. build() {
  20.     msg "Connecting to the GNOME GIT server...."
  21.     if [[ -d ${srcdir}/${_gitname} ]] ; then
  22.         cd ${_gitname}
  23.         git pull origin
  24.         msg "The local files are updated..."
  25.     else
  26.         git clone ${_gitroot}
  27.     fi
  28.    
  29.     msg "GIT checkout done."
  30.    
  31.     cd ${_gitname}
  32.  
  33.     python2 setup.py build
  34.     python2 setup.py install --root=$pkgdir --optimize=1
  35. }
RAW Paste Data