calibre: update liberation fonts location

Fix: #42953
This commit is contained in:
Đoàn Trần Công Danh 2023-03-24 07:34:55 +07:00
parent 1cbc9822c1
commit 5372d13461
1 changed files with 23 additions and 21 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'calibre'
pkgname=calibre
version=6.13.0
revision=1
revision=2
build_wrksrc=calibre
build_style=python3-module
pycompile_dirs="/usr/lib/calibre/"
@ -81,7 +81,7 @@ do_build() {
--path-to-hyphenation "$wrksrc/libreoffice-${_lover}/dictionaries"
python3 setup.py liberation_fonts \
--system-liberation_fonts \
--path-to-liberation_fonts /usr/share/fonts/TTF
--path-to-liberation_fonts /usr/share/fonts/TTF/liberation
python3 setup.py mathjax \
--path-to-mathjax /usr/share/mathjax --system-mathjax
python3 setup.py iso639
@ -92,7 +92,7 @@ do_build() {
python3 setup.py resources \
--path-to-hyphenation "$wrksrc/libreoffice-${_lover}/dictionaries" \
--system-liberation_fonts \
--path-to-liberation_fonts /usr/share/fonts/TTF \
--path-to-liberation_fonts /usr/share/fonts/TTF/liberation \
--path-to-mathjax /usr/share/mathjax --system-mathjax
}
@ -111,6 +111,7 @@ do_check() {
}
do_install() {
local _khtml
export QMAKE=${XBPS_WRAPPERDIR}/sip-qmake
vmkdir usr/share/zsh/site-functions
vmkdir usr/share/man
@ -121,23 +122,24 @@ do_install() {
# fake some user-agent, otherwise we need to build recent_uas target,
# which generates a (very long) list from current data,
cat <<-'EOF' >${DESTDIR}/usr/share/calibre/user-agent-data.json
{
"chrome_versions": [
{"chrome_version":"110.0.5481","date":"2023-02-07","webkit_version":"110"},
{"chrome_version":"109.0.5414","date":"2023-01-10","webkit_version":"109"}
],
"common_user_agents": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
],
"desktop_platforms": ["Windows NT 10.0; Win64; x64"],
"firefox_versions": ["110.0","109.0","108.0","102.0"],
"timestamp": "2023-02-24T04:17:21.721566+00:00",
"user_agents_popularity": {
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36": 252652,
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36": 115713
}
}
_khtml="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)"
cat <<-EOF >${DESTDIR}/usr/share/calibre/user-agent-data.json
{
"chrome_versions": [
{"chrome_version":"110.0.5481","date":"2023-02-07","webkit_version":"110"},
{"chrome_version":"109.0.5414","date":"2023-01-10","webkit_version":"109"}
],
"common_user_agents": [
"$_khtml Chrome/109.0.0.0 Safari/537.36",
"$_khtml Chrome/110.0.0.0 Safari/537.36"
],
"desktop_platforms": ["Windows NT 10.0; Win64; x64"],
"firefox_versions": ["110.0","109.0","108.0","102.0"],
"timestamp": "2023-02-24T04:17:21.721566+00:00",
"user_agents_popularity": {
"$_khtml Chrome/109.0.0.0 Safari/537.36": 252652,
"$_khtml Chrome/110.0.0.0 Safari/537.36": 115713
}
}
EOF
}