1 # Maintainer: RaNaN <ranan@pyload.org>
2 # Contributer: prophy <4prophy@gmail.com>
7 pkgdesc="Downloadtool for One-Click-Hoster written in python."
8 url="http://bitbucket.org/spoob/pyload/"
11 conflicts=('pyload-hg')
12 replaces=('pyload-hg')
13 depends=('python2' 'pycrypto' 'python-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'
20 source=(http://get.pyload.org/get/src/$pkgver
21 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload-gui.desktop'
22 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload.desktop'
23 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload-gui.png'
24 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload.svg' )
26 md5sums=('9b2e5a7c884871a5489cb5141d5c704b'
27 'b96a4e5091463b3b7fd79208623f1a3a'
28 'c67462993d27d5884677dd6e8a8a17d2'
29 '73fcec930d25a49e1b99576069d88bd5'
30 '649d5af94101655d37fe50e7b127d1b6' )
34 cd $srcdir || return 1
36 sed -i 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' pyload/pyLoad*.py
38 install -d ${pkgdir}/opt/pyload || return 1
39 cp -r pyload/* ${pkgdir}/opt/pyload || return 1
41 install -d ${pkgdir}/usr/share/applications || return 1
42 cp pyload.desktop ${pkgdir}/usr/share/applications || return 1
43 cp pyload-gui.desktop ${pkgdir}/usr/share/applications || return 1
45 install -d ${pkgdir}/usr/share/pixmaps || return 1
46 cp pyload.svg ${pkgdir}/usr/share/pixmaps || return 1
47 cp pyload-gui.png ${pkgdir}/usr/share/pixmaps || return 1
49 install -d ${pkgdir}/usr/bin || return 1
50 ln -s /opt/pyload/pyLoadCore.py ${pkgdir}/usr/bin/pyLoadCore || return 1
51 ln -s /opt/pyload/pyLoadCli.py ${pkgdir}/usr/bin/pyLoadCli || return 1
52 ln -s /opt/pyload/pyLoadGui.py ${pkgdir}/usr/bin/pyLoadGui || return 1