updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyload / PKGBUILD
blob67ff69d62d7661581da12dffdcb28bd9d9ac4882
1 # Maintainer: RaNaN <ranan@pyload.org>
2 # Contributer: prophy <4prophy@gmail.com>
4 pkgname='pyload'
5 pkgver=0.4.9
6 pkgrel=3
7 pkgdesc="Downloadtool for One-Click-Hoster written in python."
8 url="http://bitbucket.org/spoob/pyload/"
9 license='GPL'
10 arch=('any')
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'
17             'js: ClickNLoad')
18 makedepends=('')
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' )
32 build() {
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