desktop/pyload/PKGBUILD

54 lines
2.2 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# Contributor: RaNaN <ranan@pyload.org>
# Contributor: prophy <4prophy@gmail.com>
pkgname='pyload'
pkgver=0.4.9
pkgrel=1
pkgdesc="Downloadtool for One-Click-Hoster written in python."
url="http://bitbucket.org/spoob/pyload/"
license='GPL'
arch=('any')
conflicts=('pyload-hg')
replaces=('pyload-hg')
depends=('python' 'pycrypto' 'python-pycurl' 'tesseract' 'python-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=('4fbc0ee89cafc709eb01addd07a9c0f7'
'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
}