diff options
author | xiota | 2025-03-13 08:19:02 +0000 |
---|---|---|
committer | xiota | 2025-03-13 08:19:02 +0000 |
commit | 6539f38c24699109f8bfae7f1c7f34b4bc9f4e46 (patch) | |
tree | 1e0456599c663ef5d718650a7cb3679f1abd1b1c | |
parent | 1324f12210b97bc4c77368714f4dc6a50343b8c8 (diff) | |
download | aur-baca-ereader-git.tar.gz |
Fix for markdownify >= 1.0.0
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 12 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = baca-ereader-git pkgdesc = TUI Ebook Reader pkgver = 0.1.17.r0.g13ee794 - pkgrel = 3 + pkgrel = 4 url = https://github.com/wustho/baca arch = any license = GPL-3.0-only @@ -18,7 +18,7 @@ pkgbase = baca-ereader-git depends = python-rich depends = python-climage depends = python-markdownify - depends = python-standard-imghdr + depends = python-imghdr depends = python-textual depends = python-thefuzz provides = baca-ereader @@ -3,7 +3,7 @@ _pkgname="baca-ereader" pkgname="$_pkgname-git" pkgver=0.1.17.r0.g13ee794 -pkgrel=3 +pkgrel=4 pkgdesc="TUI Ebook Reader" url="https://github.com/wustho/baca" license=("GPL-3.0-only") @@ -21,11 +21,11 @@ depends=( 'python-peewee' 'python-rich' - # AUR + ## AUR 'python-climage' # 'python-kdtree' 'python-markdownify' - 'python-standard-imghdr' + 'python-imghdr' # aur/python-deadlib 'python-textual' 'python-thefuzz' ) @@ -73,6 +73,13 @@ prepare() { sed -E -e 's@^(\s*self)\.screen\.(scroll_(up|down))@\1.\2@g' \ -i "src/baca/components/contents.py" fi + + # markdownify >= 1.0.0 perpetual wait for image conversion + local _markdownify_version=$(python -c 'from importlib.metadata import version; print(version("markdownify"))') + if [[ $(vercmp "$_markdownify_version" 1.0.0) -ge 0 ]]; then + sed -E -e '/convert_img/s@convert_as_inline@parent_tags@' \ + -i "src/baca/utils/html_parser.py" + fi } pkgver() { |