# Maintainer: Robin Ekman # Contributor: Max Chesterfield <`echo Y2hlc3RtMDA3QGhvdG1haWwuY29tCg== | base64 -d`> # Contributor: Cedric Girard # Contributor: G. Richard Bellamy # Contributor: Andrea Repetto # Contributor: Bogdan Szczurek # Contributor: redfish pkgname=flexget-git _pkgname=Flexget pkgver=v3.11.4.r2.g7560d21a8 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=('python' # documented in requirements.in 'python-feedparser>=6.0.2-3' 'python-sqlalchemy>=1.3.10' 'python-yaml>=4.2b1' 'python-beautifulsoup4>=4.5' 'python-html5lib>=0.11' 'python-pyrss2gen' 'python-pynzb' 'python-rpyc>=4.0' 'python-jinja>=2.10' 'python-requests>=2.20.0' 'python-dateutil>=2.5.3' 'python-jsonschema>=2.0' 'python-guessit>=3.2.0' 'python-rebulk>=2.0.0' 'python-apscheduler>=3.2.0' 'python-terminaltables>=3.1.0' 'python-colorclass>=2.2.0' 'python-cherrypy>=18.0.0' 'python-flask>=0.7' 'python-flask-restful>=0.3.3' 'python-flask-restx>=0.2.0' 'python-flask-compress>=1.2.1' 'python-flask-login>=0.4.0' 'python-flask-cors>=2.1.2' 'python-pyparsing>=2.4.7' 'python-zxcvbn' 'python-progressbar>=2.5' 'python-loguru>=0.4.1' 'python-pendulum>=3.0.0' ) optdepends=( 'python-transmissionrpc: Transmission support' #AUR# 'python-rarfile: decompress plugin' #AUR# 'python-boto3: SNS output plugin' #AUR# ) makedepends=('python-paver' 'python-setuptools' ) #'yarn' #'bower' #'gulp' #checkdepends=('python-vcr') provides=('flexget') conflicts=('flexget') source=("git+https://github.com/Flexget/Flexget/" 'flexget.service' 'flexget@.service' ) sha256sums=('SKIP' 'e2c3a958ed0c286337cd37fba1d6cbdf4306c57fcddf2b9cc43615ce80ae83aa' 'aceecee5496a34c14c12ed5ad8b97197de32896f358b5aef63a84bf4a419756a') pkgver() { cd "${_pkgname}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "${_pkgname}" # Remove specific versions, because they are not going to match # versions of Arch packages. Yes, this might break something. sed -i 's/==.*//g' requirements.txt sed -i 's/<=.*//g' requirements.txt sed -i 's/~=.*//g' requirements.txt # Relax loguru requirement (AUR out-of-date right now) sed -i 's/loguru>=0.4.1/loguru>=0.4/g' requirements.txt #zxcvbn-python has been renamed zxcvbn sed -i 's!zxcvbn-python!zxcvbn!' requirements.txt # Python distribution of progressbar v3.x.x is named progressbar2 sed -i 's/progressbar/progressbar2/' requirements.txt # Remove stale wheels git -C "${srcdir}/${_pkgname}" clean -dfx } build() { cd "${_pkgname}" python -m build --wheel --no-isolation } # currently broken somewhere in the bower task #build() { # cd "${_pkgname}"/flexget/ui/v1 # yarn # XDG_CONFIG_HOME="${_srcdir}" bower --config.analytics=false install # XDG_CONFIG_HOME="${_srcdir}" gulp # #} package() { cd "${_pkgname}" # Python setup python -m installer --compile-bytecode=1 --destdir="${pkgdir}"/ dist/*.whl # License install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE # install systemd user unit install -Dm644 ../flexget.service "${pkgdir}"/usr/lib/systemd/user/flexget.service # install systemd system unit install -Dm644 ../flexget@.service "${pkgdir}"/usr/lib/systemd/system/flexget@.service } # vim:set ts=2 sw=2 et: