From c5a978faba9bdf6baf7f8a553d2c8c55d66c45e3 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 22 Mar 2011 00:29:33 -0400 Subject: [PATCH] Added flexget and deps to aur --- aur/flexget/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ aur/flexget/flexget.install | 22 ++++++++++++++++++++++ aur/pyrss2gen/PKGBUILD | 22 ++++++++++++++++++++++ aur/python-flask/PKGBUILD | 22 ++++++++++++++++++++++ aur/python-progressbar/PKGBUILD | 21 +++++++++++++++++++++ aur/python-werkzeug/PKGBUILD | 22 ++++++++++++++++++++++ aur/python2-pynzb/LICENSE.txt | 28 ++++++++++++++++++++++++++++ aur/python2-pynzb/PKGBUILD | 26 ++++++++++++++++++++++++++ 8 files changed, 195 insertions(+) create mode 100644 aur/flexget/PKGBUILD create mode 100644 aur/flexget/flexget.install create mode 100644 aur/pyrss2gen/PKGBUILD create mode 100644 aur/python-flask/PKGBUILD create mode 100644 aur/python-progressbar/PKGBUILD create mode 100644 aur/python-werkzeug/PKGBUILD create mode 100644 aur/python2-pynzb/LICENSE.txt create mode 100644 aur/python2-pynzb/PKGBUILD diff --git a/aur/flexget/PKGBUILD b/aur/flexget/PKGBUILD new file mode 100644 index 000000000..a289895ee --- /dev/null +++ b/aur/flexget/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Nathan Owe + +plugrel=1 + +pkgname=flexget +_pkgname=FlexGet +pkgver=1.0r1997 +pkgrel=1 +pkgdesc="Automate downloading or processing content (torrents, podcasts, etc.)" +arch=(any) +url="http://flexget.com/" +depends=('python2' 'cherrypy' 'python-flask' 'python-progressbar' \ + 'python2-pynzb' 'pyrss2gen' 'python2-sqlalchemy' 'python-html5lib' \ + 'python-beautifulsoup' 'python-yaml' 'python-feedparser') +makedepends=('python2-distribute') +license=('MIT') +install=('flexget.install') +source=("http://download.flexget.com/unstable/${_pkgname}-${pkgver}.tar.gz") +md5sums=('4331f29cab53f23d474fed5e43cbeb3d') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 setup.py build + +} +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 setup.py install --root=${pkgdir}/ optimize=1 + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + + diff --git a/aur/flexget/flexget.install b/aur/flexget/flexget.install new file mode 100644 index 000000000..f708c5a7b --- /dev/null +++ b/aur/flexget/flexget.install @@ -0,0 +1,22 @@ +# arg 1: the new package version +post_install() { + echo "You need to place your config.yml in /opt/flexget/ see dir for examples." + echo "Configuration details can be found at http://flexget.com/wiki/Configuration." +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + echo "You need to place your config.yml in /opt/flexget/ see dir for examples." + echo "Configuration details can be found at http://flexget.com/wiki/Configuration." +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +op=$1 +shift + +$op $* diff --git a/aur/pyrss2gen/PKGBUILD b/aur/pyrss2gen/PKGBUILD new file mode 100644 index 000000000..32876ede6 --- /dev/null +++ b/aur/pyrss2gen/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Florian Léger + +plugrel=1 + +pkgname=pyrss2gen +pkgver=1.0.0 +pkgrel=3 +pkgdesc="A Python library for generating RSS 2.0 feeds." +arch=('any') +url='http://www.dalkescientific.com/Python/PyRSS2Gen.html' +license=('BSD') +depends=('python2') +makedepends=('python2-distribute') +source=("http://www.dalkescientific.com/Python/PyRSS2Gen-${pkgver}.tar.gz") +md5sums=('b37ed0c9cfa4438a73dbbb0207f3aff6') + +build() { + cd "$srcdir/PyRSS2Gen-$pkgver" + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + python2 setup.py install --root="$pkgdir" || return 1 +} + diff --git a/aur/python-flask/PKGBUILD b/aur/python-flask/PKGBUILD new file mode 100644 index 000000000..92b4dbcd2 --- /dev/null +++ b/aur/python-flask/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Tarmo Heiskanen + +plugrel=1 + +pkgname=python-flask +pkgver=0.6.1 +pkgrel=1 +pkgdesc='Micro webdevelopment framework for Python' +arch=('any') +url='http://flask.pocoo.org/' +license=('BSD') +depends=('python2' 'python-werkzeug' 'python-jinja') +makedepends=('setuptools') +source=("http://pypi.python.org/packages/source/F/Flask/Flask-${pkgver}.tar.gz") +md5sums=('7af56e33fb6a35db2818c20e604c8698') + +build() { + cd "${srcdir}/Flask-${pkgver}" + python2 ./setup.py install --root="${pkgdir}" --prefix="/usr" +} + +# vim:set ts=2 sw=2 et: diff --git a/aur/python-progressbar/PKGBUILD b/aur/python-progressbar/PKGBUILD new file mode 100644 index 000000000..89795991e --- /dev/null +++ b/aur/python-progressbar/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Joao Cordeiro +# Contributor: Vasily Shevkunov + +plugrel=1 + +pkgname=python-progressbar +pkgver=2.2 +pkgrel=2 +pkgdesc="Text progressbar library for python" +arch=('i686' 'x86_64') +url="http://pypi.python.org/pypi/progressbar" +license=('LGPL') +makedepends=('python2') +depends=('python2') +source=(http://pypi.python.org/packages/source/p/progressbar/progressbar-$pkgver.tar.gz) +md5sums=('8ea4e2c17a8ec9e7d153767c5f2a7b28') +build() { + cd $startdir/src/progressbar-$pkgver + sed -i 's|^#!/usr/bin/python$|#!/usr/bin/python2|' progressbar.py + python2 setup.py install --root=$startdir/pkg || return 1 +} diff --git a/aur/python-werkzeug/PKGBUILD b/aur/python-werkzeug/PKGBUILD new file mode 100644 index 000000000..434834c43 --- /dev/null +++ b/aur/python-werkzeug/PKGBUILD @@ -0,0 +1,22 @@ +# Contributer: Richard Murri + +plugrel=1 + +pkgname=python-werkzeug +pkgver=0.6.2 +pkgrel=2 +pkgdesc="The Swiss Army knife of Python web development" +arch=(any) +url="http://werkzeug.pocoo.org/" +license=('BSD') +depends=('python2>=2.4') +makedepends=('setuptools') +source=(http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-$pkgver.tar.gz) +md5sums=('519408350346a247333bb5d584371724') + +build() { + cd Werkzeug-$pkgver + python2 ./setup.py install --root=$pkgdir --prefix=/usr || return 1 +} + + diff --git a/aur/python2-pynzb/LICENSE.txt b/aur/python2-pynzb/LICENSE.txt new file mode 100644 index 000000000..da5fa0319 --- /dev/null +++ b/aur/python2-pynzb/LICENSE.txt @@ -0,0 +1,28 @@ +Copyright (c) 2009, Eric Florenzano +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the author nor the names of other + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/aur/python2-pynzb/PKGBUILD b/aur/python2-pynzb/PKGBUILD new file mode 100644 index 000000000..58be3c3e9 --- /dev/null +++ b/aur/python2-pynzb/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor : Daniel Neve + +plugrel=1 + +pkgshort=pynzb +pkgname=python2-$pkgshort +pkgver=0.1.0 +pkgrel=1 +pkgdesc="A unified API for parsing NZB files" +arch=('any') +url="http://pypi.python.org/pypi/pynzb/" +license=('BSD') +depends=('python2' 'expat') +makedepends=('setuptools') +conflicts=('pynzb') +optdepends=('python-lxml: Use lxml instead of expat') +source=(http://pypi.python.org/packages/source/p/$pkgshort/$pkgshort-$pkgver.tar.gz + https://www.github.com/ericflo/$pkgshort/raw/master/LICENSE.txt) +md5sums=('63c74a36348ac28aa99732dcb8be8c59' + '87d87599921bae943f981b28ecfc3cc1') + +build() { + cd $srcdir/$pkgshort-$pkgver + python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1 + install -D -m644 $srcdir/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt +}