summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxiota2025-03-13 08:19:02 +0000
committerxiota2025-03-13 08:19:02 +0000
commit6539f38c24699109f8bfae7f1c7f34b4bc9f4e46 (patch)
tree1e0456599c663ef5d718650a7cb3679f1abd1b1c
parent1324f12210b97bc4c77368714f4dc6a50343b8c8 (diff)
downloadaur-baca-ereader-git.tar.gz
Fix for markdownify >= 1.0.0
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
2 files changed, 12 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a32f6f4c4ec9..a67114e6c1cf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index b6ada5fe49f0..f2e705690d62 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {