desktop/pyload/PKGBUILD

53 lines
2.2 KiB
Bash
Raw Normal View History

#
# Apps Packages for Chakra, part of chakra-project.org
#
2011-11-12 11:10:19 +08:00
# 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
2011-12-29 04:17:44 +08:00
pkgver=0.4.9
pkgrel=2
pkgdesc="Downloadtool for One-Click-Hoster written in python."
2011-11-12 11:10:19 +08:00
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')
2011-11-12 11:10:19 +08:00
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'
2011-11-12 11:10:19 +08:00
'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'
2011-11-12 11:10:19 +08:00
'http://bitbucket.org/ranan/pyload-dist/raw/bf705af8f412/debian/pyload/usr/share/pixmaps/pyload.svg' )
md5sums=('28876150af22999b6f539c8579d3b415'
'b96a4e5091463b3b7fd79208623f1a3a'
'c67462993d27d5884677dd6e8a8a17d2'
'73fcec930d25a49e1b99576069d88bd5'
'649d5af94101655d37fe50e7b127d1b6')
2011-11-12 11:10:19 +08:00
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
2011-11-12 11:10:19 +08:00
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
}