2014-11-03 18:37:17 +00:00
# Maintainer: Amr Hassan <amr.hassan@gmail.com>
# Maintainer: Nathan Owe <ndowens.aur at gmail dot com>
# Maintainer: G. Richard Bellamy <rbellamy@pteradigm.com>
pkgname = flexget
_pkgname = FlexGet
2015-06-10 05:00:59 +00:00
pkgver = 1.2.320
2014-11-03 18:37:17 +00:00
pkgrel = 1
pkgdesc = "Automate downloading or processing content (torrents, podcasts, etc.) from different sources like RSS-feeds, html-pages, various sites and more."
arch = ( 'any' )
url = "http://flexget.com/"
license = ( 'MIT' )
depends = ( 'python2'
# documented in FlexGet.egg-info/requires.txt
'python2-feedparser>=5.1.3'
'python2-sqlalchemy>=0.7.5'
2015-06-10 05:00:59 +00:00
'python2-sqlalchemy<=1.999'
2014-11-03 18:37:17 +00:00
'python2-yaml'
'python2-beautifulsoup4>=4.1'
'python2-beautifulsoup4<4.4'
'python2-guessit>=0.9.3'
'python2-html5lib>=0.11'
'python2-pyrss2gen' #AUR#
'python2-progressbar'
'python2-rpyc' #AUR#
'python2-jinja'
'python2-path>=5.1' #AUR#
'python2-requests>=1.0'
'python2-requests<2.99'
'python2-dateutil1' #AUR#
'python2-jsonschema>=2.0' #AUR#
'python2-tvrage' #AUR#
'python2-tmdb3' #AUR#
'python2-pynzb' #AUR#
2015-06-10 05:00:59 +00:00
'python2-apscheduler' #AUR#
2014-11-03 18:37:17 +00:00
# undocumented in FlexGet.egg-info/requires.txt
)
optdepends = ( 'python2-guppy: for memusage plugin' #AUR#
'python2-transmissionrpc: Transmission support' #AUR#
'python2-cherrypy: web interface'
'python2-flask: web interface'
)
2014-11-06 17:45:16 +00:00
makedepends = ( 'python2-paver'
2014-11-03 18:37:17 +00:00
'python2-setuptools'
)
2014-11-06 17:45:16 +00:00
source = ( " https://pypi.python.org/packages/source/F/FlexGet/ ${ _pkgname } - ${ pkgver } .tar.gz "
2014-11-03 18:37:17 +00:00
'flexget.service'
2015-06-10 05:00:59 +00:00
"http://download.flexget.com/ChangeLog"
2014-11-03 18:37:17 +00:00
)
2015-06-10 05:00:59 +00:00
changelog = ChangeLog
sha256sums = ( 'd659dd7dce6bcb37a1e608e928b88b3f33ae667bfc6350a258b7c9042269b5b7'
'e2c3a958ed0c286337cd37fba1d6cbdf4306c57fcddf2b9cc43615ce80ae83aa'
'dcc1bc676b8c2b798fa9a7e0ed2b6853323e9e9d8ff696696dddeaf29cbc13d6' )
prepare( ) {
cd " ${ _pkgname } " -" ${ pkgver } "
msg "Patching shebangs to point to python2"
sed -i 's/\(python\)/\12/' flexget{ ,/ui} /__init__.py
}
2014-11-03 18:37:17 +00:00
package( ) {
2015-06-10 05:00:59 +00:00
cd " ${ _pkgname } " -" ${ pkgver } "
2014-11-03 18:37:17 +00:00
# Python setup
python2 setup.py install --root= " ${ pkgdir } " / --prefix= /usr --optimize= 1 || return 1
# License
install -Dm644 LICENSE " ${ pkgdir } " /usr/share/licenses/" ${ pkgname } " /LICENSE
# Make sure the perms allow reading by all
2014-11-06 17:45:16 +00:00
chmod ugo+r ${ pkgdir } /usr/lib/python2.7/site-packages/${ _pkgname } -${ pkgver } -py2.7.egg-info/*
2014-11-03 18:37:17 +00:00
# install systemd user unit
install -Dm644 ../flexget.service " ${ pkgdir } " /usr/lib/systemd/user/flexget.service
}
# vim:set ts=2 sw=2 et: