Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 3rd, 2013  |  syntax: None  |  size: 2.29 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: RaNaN <ranan@pyload.org>
  2. # Contributer: prophy <4prophy@gmail.com>
  3.  
  4. pkgname='pyload-hg'
  5. pkgver=2425
  6. pkgrel=1
  7. pkgdesc="Downloadtool for One-Click-Hoster written in python. Latest hg pull."
  8. url="http://bitbucket.org/spoob/pyload/"
  9. license='GPL'
  10. arch=('any')
  11. provides=('pyload')
  12. conflicts=('pyload')
  13. depends=('python2' 'pycrypto' 'python2-pycurl' 'tesseract' 'python-imaging' 'python2-jinja' 'python-beaker')
  14. optdepends=('python2-qt: Gui'
  15.             'python-flup: for additional webservers'
  16.             'python-notify: Notifications for GUI'
  17.             'js: ClickNLoad')
  18. makedepends=('mercurial')
  19.  
  20. source=('http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload-gui.desktop'
  21.         'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload.desktop'
  22.         'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload-gui.png'
  23.         'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload.svg' )
  24.  
  25. md5sums=('b96a4e5091463b3b7fd79208623f1a3a'
  26.          'c67462993d27d5884677dd6e8a8a17d2'
  27.          '73fcec930d25a49e1b99576069d88bd5'
  28.          '649d5af94101655d37fe50e7b127d1b6' )
  29.  
  30.  
  31.  
  32. _hgroot='http://bitbucket.org/spoob'
  33. _hgrepo='pyload'
  34.  
  35. build() {
  36.  
  37.   cd ${srcdir}
  38.  
  39.   if [ -d $_hgrepo ]; then
  40.     cd $_hgrepo && hg pull -u
  41.   else
  42.     hg clone ${_hgroot}/${_hgrepo}
  43.     cd $_hgrepo
  44.   fi
  45.  
  46.   hg update -C stable  
  47.  
  48.  
  49.   cd ${srcdir}
  50.  
  51.   sed -i 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' pyload/pyLoad*.py
  52.  
  53.   mkdir ${pkgdir}/opt
  54.    
  55.   cp -r ${_hgrepo} ${pkgdir}/opt/ || return 1
  56.  
  57.   install -d ${pkgdir}/usr/share/applications || return 1
  58.   cp pyload.desktop ${pkgdir}/usr/share/applications || return 1
  59.   cp pyload-gui.desktop ${pkgdir}/usr/share/applications || return 1
  60.  
  61.   install -d ${pkgdir}/usr/share/pixmaps || return 1
  62.   cp pyload.svg ${pkgdir}/usr/share/pixmaps || return 1
  63.   cp pyload-gui.png ${pkgdir}/usr/share/pixmaps || return 1
  64.  
  65.   install -d ${pkgdir}/usr/bin || return 1
  66.   ln -s /opt/pyload/pyLoadCore.py ${pkgdir}/usr/bin/pyLoadCore || return 1
  67.   ln -s /opt/pyload/pyLoadCli.py ${pkgdir}/usr/bin/pyLoadCli || return 1
  68.   ln -s /opt/pyload/pyLoadGui.py ${pkgdir}/usr/bin/pyLoadGui || return 1
  69.  
  70.  
  71. }
clone this paste RAW Paste Data