user/zotero: fix pdf reader
Some checks failed
/ lint (pull_request) Failing after 30s
/ build-x86_64 (pull_request) Failing after 56s
/ deploy-x86_64 (pull_request) Has been skipped
/ deploy-aarch64 (pull_request) Has been skipped
/ build-aarch64 (pull_request) Failing after 1m28s

This commit is contained in:
Antoine Martin 2024-10-15 13:22:51 -04:00
parent 3a10310c90
commit 417ad1c0e3
Signed by: forge
GPG key ID: D62A472A4AA7D541
2 changed files with 26 additions and 14 deletions

View file

@ -2,14 +2,11 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=zotero
pkgver=7.0.7
pkgrel=0
pkgrel=1
_fxver=115.14.0
_gittag=$pkgver
# Date of release, YY-MM-DD for metainfo file (see package())
# https://www.mozilla.org/firefox/organizations/notes/
_releasedate=2024-08-09
pkgdesc="A free, easy-to-use tool to help you collect, organize, cite, and share your research sources."
url="https://www.mozilla.org/en-US/firefox/organizations/"
url="https://www.zotero.org/"
# s390x and riscv64: blocked by rust and cargo
# armhf: build failure on armhf due to wasm
arch="x86_64 armv7 aarch64 x86 ppc64le"
@ -17,6 +14,7 @@ license="GPL-3.0-only AND LGPL-2.1-only AND LGPL-3.0-only AND MPL-2.0"
depends="
ffmpeg-libavcodec
"
_llvmver=18
makedepends="
alsa-lib-dev
automake
@ -24,8 +22,8 @@ makedepends="
bsd-compat-headers
cargo
cbindgen
clang
clang-libclang
clang$_llvmver
clang$_llvmver-libclang
curl
dbus-glib-dev
gettext
@ -45,8 +43,8 @@ makedepends="
libwebp-dev
libxcomposite-dev
libxt-dev
lld
llvm-dev
lld$_llvmver
llvm$_llvmver-dev
m4
mesa-dev
nasm
@ -63,7 +61,6 @@ makedepends="
rsync
sed
unzip
wasi-sdk
wireless-tools-dev
xvfb-run
zip
@ -128,8 +125,8 @@ export MOZ_NOSPAM=1
export RUST_TARGET="$CTARGET"
# Build with Clang, takes less RAM
export CC="clang"
export CXX="clang++"
export CC="clang-$_llvmver"
export CXX="clang++-$_llvmver"
# set rpath so linker finds the libs
export LDFLAGS="$LDFLAGS -Wl,-rpath,$_mozappdir"
@ -244,6 +241,10 @@ prepare() {
ac_add_options --with-system-webp
ac_add_options --with-system-zlib
# disable wasm due to wasi-sdk and wasi-compiler-rt built against clang19
# ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot
ac_add_options --without-wasm-sandboxed-libraries
# misc
ac_add_options --allow-addon-sideload
ac_add_options --prefix=/usr
@ -251,7 +252,6 @@ prepare() {
ac_add_options --with-distribution-id=org.alpinelinux
ac_add_options --with-libclang-path=/usr/lib
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot
ac_add_options --host=$CHOST
ac_add_options --target=$CTARGET
@ -382,7 +382,7 @@ f8c3555ef6207933cbffbf4fc101a9b4c0d2990c0063162f0f0bde70ef0b46f86bfac42e71106951
fc45bc3ffb9404e5338ea26a9f04807b40f6f516324972cddd48bedb91b8bd7c6b8d4e03a0209020f5e67b703bc4ff89389985791b9bd544a0fc3951e2dc338e vendor-prefs.js
e1a0a4ff5cc1b53f13776ca11927d671426b0691e78e74a4adf2166d57bb2ae8ac409cc11a37ce5e2f680fdf05d5bc3849c33a9717aca1bb62d03ae5231a67fb zotero.desktop
ba04ec60afd2e9f9500046128b60f1c68b0ac7e47f5fbbc4f4fbfde01df982eb1561d65fb0aef9bee4ee098c4babc5e9caa4c9e791ad616bb55d7a0523349f34 zotero-7.0.7.tar.gz
7fb791a386d30594a11ae3856295d5081000de7525036eb0b5836505bd4f0b13a4fe706400ad7efe00b75c2112cf3d59ea3542b6179ccd80f7ee1889349f441d zotero_drop-jazzer.patch
3730281d9dc7f6b08c8ac31f057fd2baf6e1263835012959bd3c7118c3cd8b4e672513eb9cb7df0d97904207505a98c57465e307649d2ee6ff900b45401bce31 zotero_drop-jazzer.patch
746dbabbb3ea9199d17891e2079b9256d04843f548132178862117d2334694d98e2cc981945d72f31d0e5b2c42904d371633f6905996bb580aa0b5ae95c64ddc zotero_build-modifications.patch
337070ee4c44ccb35c6b6290c18327740bb9fccfd1a6ad1045782e83daa290b6ced7d53955d3a889f661d588738a64f2e7f383639f4c46be9fdf891168abc9ff zotero_test-drop-build.patch
f0e4f09496531222e8400959f9ef12852bca269eb3bf4c3b87ccaf92f28a12b9374461a1c79ad294a4393dbe30800aa1c85497033d0bc304fa8c198dfab3efd2 zotero_test-fix-chars.patch

View file

@ -10,3 +10,15 @@ index 3025926..13f8b7a 100644
"@metalsmith/layouts": "^2.7.0",
"@metalsmith/markdown": "^1.10.0",
"autoprefixer": "^10.4.19",
diff --git a/zotero/reader/pdfjs/pdf.js/package.json.orig b/zotero/reader/pdfjs/pdf.js/package.json
index 3025926aa44..13f8b7aca93 100644
--- a/zotero/reader/pdfjs/pdf.js/package.json.orig
+++ b/zotero/reader/pdfjs/pdf.js/package.json
@@ -7,7 +7,6 @@
"@babel/runtime": "^7.24.8",
"@fluent/bundle": "^0.18.0",
"@fluent/dom": "^0.10.0",
- "@jazzer.js/core": "^2.1.0",
"@metalsmith/layouts": "^2.7.0",
"@metalsmith/markdown": "^1.10.0",
"autoprefixer": "^10.4.19",