# # Apps Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa # Contributor: RaNaN # Contributor: prophy <4prophy@gmail.com> pkgname=pyload pkgver=0.4.9 pkgrel=2 pkgdesc="Downloadtool for One-Click-Hoster written in python." url="http://bitbucket.org/spoob/pyload/" license='GPL' arch=('any') conflicts=('pyload-hg') depends=('python2' 'python2-crypto' 'python-pycurl' 'tesseract' 'python2-imaging' 'python-jinja' 'python-beaker' 'pyqt') optdepends=('spidermonkey: ClickNLoad') categories=('network') source=($pkgname-$pkgver.tar.gz::http://get.pyload.org/get/src/$pkgver 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload-gui.desktop' 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/applications/pyload.desktop' 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload-gui.png' 'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload.svg' ) md5sums=('28876150af22999b6f539c8579d3b415' 'b96a4e5091463b3b7fd79208623f1a3a' 'c67462993d27d5884677dd6e8a8a17d2' '73fcec930d25a49e1b99576069d88bd5' '649d5af94101655d37fe50e7b127d1b6') build() { cd $srcdir || return 1 sed -i 's_#!/usr/bin/env python$_#!/usr/bin/env python2_' pyload/pyLoad*.py install -d ${pkgdir}/opt/pyload || return 1 cp -r pyload/* ${pkgdir}/opt/pyload || return 1 install -d ${pkgdir}/usr/share/applications || return 1 cp pyload.desktop ${pkgdir}/usr/share/applications || return 1 cp pyload-gui.desktop ${pkgdir}/usr/share/applications || return 1 install -d ${pkgdir}/usr/share/pixmaps || return 1 cp pyload.svg ${pkgdir}/usr/share/pixmaps || return 1 cp pyload-gui.png ${pkgdir}/usr/share/pixmaps || return 1 install -d ${pkgdir}/usr/bin || return 1 ln -s /opt/pyload/pyLoadCore.py ${pkgdir}/usr/bin/pyLoadCore || return 1 ln -s /opt/pyload/pyLoadCli.py ${pkgdir}/usr/bin/pyLoadCli || return 1 ln -s /opt/pyload/pyLoadGui.py ${pkgdir}/usr/bin/pyLoadGui || return 1 }