From 1b82d8890d5b5390fc6e71a6927ee736f6785ee6 Mon Sep 17 00:00:00 2001 From: devome Date: Thu, 12 Dec 2024 09:23:47 +0800 Subject: [PATCH] flexget: 3.12.4-1 --- .SRCINFO | 6 ++-- PKGBUILD | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++--- geninfo.sh | 11 ++++++-- 3 files changed, 87 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 9d979e456e29..597630926d35 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = flexget pkgdesc = FlexGet is a program aimed to automate downloading or processing content (torrents, podcasts, etc.) from different sources like RSS-feeds, html-pages, various sites and more. - pkgver = 3.12.3 + pkgver = 3.12.4 pkgrel = 1 url = https://github.com/Flexget/Flexget arch = any @@ -83,13 +83,13 @@ pkgbase = flexget optdepends = flexget-webui: webui v2 optdepends = flexget-webui-v1: webui v1 options = !strip - source = flexget-3.12.3.tar.gz::https://github.com/Flexget/Flexget/archive/v3.12.3.tar.gz + source = flexget-3.12.4.tar.gz::https://github.com/Flexget/Flexget/archive/v3.12.4.tar.gz source = flexget.service source = flexget@.service source = flexget.user.service source = flexget.sysusers source = flexget.tmpfiles - sha256sums = d8ec6f0bc5af722d938e89046374a6ca1839dd92b123dc16387939c74110f3aa + sha256sums = 13aeb4bbe024f9c859ca451d5bb65d46a5397f48015a5c4d50e4b6f9bbc422a8 sha256sums = b7578417ab5f671def7021133ae68900d82aaa81b5e80a2fec4d85e46eb1f8e9 sha256sums = b9d354f6095aafe7a29cb8e90239b662a2584903a85fe3770f2b99bb8bdfff4a sha256sums = 799921777b3714f074deaafbdd241ea7b99a0eccd65931708fd81457286f4f49 diff --git a/PKGBUILD b/PKGBUILD index 5fbf68bfe962..5ac90dd8310d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -9,15 +9,87 @@ _pkgname=Flexget pkgname=${_pkgname,,} -pkgver=3.12.3 +pkgver=3.12.4 pkgrel=1 pkgdesc="FlexGet is a program aimed to automate downloading or processing content (torrents, podcasts, etc.) from different sources like RSS-feeds, html-pages, various sites and more." arch=(any) url="https://github.com/${_pkgname}/${_pkgname}" license=(MIT) # run './geninfo.sh' to auto generate 'depends' variable after run 'updpkgsums' -depends=(python-aniso8601 python-apscheduler python-attrs python-autocommand python-babelfish python-beautifulsoup4 python-blinker python-brotli python-certifi python-charset-normalizer python-cheroot python-cherrypy python-click python-colorama python-dateutil python-feedparser python-flask python-flask-compress python-flask-cors python-flask-login python-flask-restx python-greenlet python-guessit python-html5lib python-idna python-importlib_resources python-itsdangerous python-jaraco.collections python-jaraco.context python-jaraco.functools python-jaraco.text python-jinja python-jsonschema python-jsonschema-specifications python-loguru python-markdown-it-py python-markupsafe python-mdurl python-more-itertools python-packaging python-pendulum python-plumbum python-portend python-psutil python-pygments python-pynzb python-pyparsing python-pyrss2gen python-pytz python-pyyaml python-rebulk python-referencing python-requests python-rich python-rpds-py python-rpyc python-setuptools python-sgmllib3k python-six python-soupsieve python-sqlalchemy python-tempora python-typing_extensions python-tzdata python-tzlocal python-urllib3 python-webencodings python-werkzeug python-zc.lockfile python-zstandard python-zxcvbn) -makedepends=(python-build python-installer python-setuptools python-wheel) +depends=( + "python-aniso8601" + "python-apscheduler" + "python-attrs" + "python-autocommand" + "python-babelfish" + "python-beautifulsoup4" + "python-blinker" + "python-brotli" + "python-certifi" + "python-charset-normalizer" + "python-cheroot" + "python-cherrypy" + "python-click" + "python-colorama" + "python-dateutil" + "python-feedparser" + "python-flask" + "python-flask-compress" + "python-flask-cors" + "python-flask-login" + "python-flask-restx" + "python-greenlet" + "python-guessit" + "python-html5lib" + "python-idna" + "python-importlib_resources" + "python-itsdangerous" + "python-jaraco.collections" + "python-jaraco.context" + "python-jaraco.functools" + "python-jaraco.text" + "python-jinja" + "python-jsonschema" + "python-jsonschema-specifications" + "python-loguru" + "python-markdown-it-py" + "python-markupsafe" + "python-mdurl" + "python-more-itertools" + "python-packaging" + "python-pendulum" + "python-plumbum" + "python-portend" + "python-psutil" + "python-pygments" + "python-pynzb" + "python-pyparsing" + "python-pyrss2gen" + "python-pytz" + "python-pyyaml" + "python-rebulk" + "python-referencing" + "python-requests" + "python-rich" + "python-rpds-py" + "python-rpyc" + "python-setuptools" + "python-sgmllib3k" + "python-six" + "python-soupsieve" + "python-sqlalchemy" + "python-tempora" + "python-typing_extensions" + "python-tzdata" + "python-tzlocal" + "python-urllib3" + "python-webencodings" + "python-werkzeug" + "python-zc.lockfile" + "python-zstandard" + "python-zxcvbn" +) +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') optdepends=('flexget-webui: webui v2' 'flexget-webui-v1: webui v1') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" @@ -26,7 +98,7 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" "${pkgname}.user.service" "${pkgname}.sysusers" "${pkgname}.tmpfiles") -sha256sums=('d8ec6f0bc5af722d938e89046374a6ca1839dd92b123dc16387939c74110f3aa' +sha256sums=('13aeb4bbe024f9c859ca451d5bb65d46a5397f48015a5c4d50e4b6f9bbc422a8' 'b7578417ab5f671def7021133ae68900d82aaa81b5e80a2fec4d85e46eb1f8e9' 'b9d354f6095aafe7a29cb8e90239b662a2584903a85fe3770f2b99bb8bdfff4a' '799921777b3714f074deaafbdd241ea7b99a0eccd65931708fd81457286f4f49' diff --git a/geninfo.sh b/geninfo.sh index 1554517fccde..3a9d451ae66c 100755 --- a/geninfo.sh +++ b/geninfo.sh @@ -8,6 +8,7 @@ pkgver=$(awk -F= '/pkgver=/{print $2}' PKGBUILD) pytoml="src/${_pipname}-${pkgver}/pyproject.toml" pyreq="src/${_pipname}-${pkgver}/requirements.txt" +trap "rm depends.txt" EXIT makepkg -do pkgdesc=$(yq eval -o=json "$pytoml" | jq -r '.project.description') depends=$(./geninfo.py "$pyreq" | @@ -22,10 +23,14 @@ depends=$(./geninfo.py "$pyreq" | sed 's|python-typing-|python-typing_|' | sed 's|python-zc-lockfile|python-zc.lockfile|' | sort -u | - tr '\n' ' ' | - sed 's| $||' + sed 's|^| \"|' | + sed 's|$|\"|' ) +echo -e "${depends}\n)" > depends.txt sed -e "s|^pkgdesc=.*|pkgdesc=\"$pkgdesc\"|" \ - -e "s|^depends=.*|depends=(${depends})|" \ + -e "/^depends=(/,/)/c\depends=(" \ + -i PKGBUILD + +sed -e "/^depends=/r depends.txt" \ -i PKGBUILD