2023-04-23 21:16:07 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
|
|
|
pkgname=zotero
|
2024-02-01 03:49:09 +00:00
|
|
|
pkgver=7.0.0_git20240131
|
2023-04-23 21:16:07 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="A free, easy-to-use tool to help you collect, organize, cite, and share your research sources."
|
2024-02-01 03:49:09 +00:00
|
|
|
arch="x86_64"
|
2023-04-23 21:16:07 +00:00
|
|
|
url="https://github.com/zotero/zotero"
|
|
|
|
_giturl="https://lab.ilot.io/mirrors/zotero"
|
2024-02-01 03:49:09 +00:00
|
|
|
_gittag_client=7.0.0._20240131
|
2023-04-23 21:16:07 +00:00
|
|
|
license="AGPL3"
|
|
|
|
depends="
|
|
|
|
dbus-glib
|
|
|
|
gtk+3.0
|
|
|
|
nss
|
|
|
|
libxt
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
npm
|
|
|
|
grep
|
|
|
|
zip
|
|
|
|
unzip
|
|
|
|
perl
|
|
|
|
python3
|
|
|
|
curl
|
|
|
|
nodejs
|
|
|
|
firefox-esr~=102
|
|
|
|
"
|
|
|
|
source="
|
|
|
|
zotero.desktop
|
|
|
|
$_giturl-client/-/releases/$_gittag_client/downloads/tarball/zotero-client-$_gittag_client.tar.gz
|
2024-02-01 03:49:09 +00:00
|
|
|
xulrunner-get-alpine-firefox.patch
|
|
|
|
build-sh-fix.patch
|
2023-04-23 21:16:07 +00:00
|
|
|
"
|
|
|
|
builddir="$srcdir"/zotero-client-$_gittag_client
|
|
|
|
options="!check"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
git init
|
|
|
|
git commit --allow-empty -m 'Initial'
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-02-01 03:49:09 +00:00
|
|
|
npm i --legacy-peer-deps
|
2023-04-23 21:16:07 +00:00
|
|
|
NODE_OPTIONS=--openssl-legacy-provider npm run build
|
|
|
|
|
2024-02-01 03:49:09 +00:00
|
|
|
SKIP_32=1 app/scripts/dir_build -p l
|
2023-04-23 21:16:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -dDm755 "$pkgdir"/usr/bin
|
|
|
|
install -dDm755 "$pkgdir"/usr/lib/zotero
|
2024-02-01 03:49:09 +00:00
|
|
|
cp -r "$builddir"/app/staging/Zotero_linux-$CARCH/* "$pkgdir/usr/lib/zotero"
|
2023-04-23 21:16:07 +00:00
|
|
|
ln -s /usr/lib/zotero/zotero "$pkgdir/usr/bin/zotero"
|
|
|
|
install -Dm644 "$srcdir/zotero.desktop" "$pkgdir/usr/share/applications/zotero.desktop"
|
|
|
|
|
|
|
|
# Copy zotero icons to a standard location
|
2024-02-01 03:49:09 +00:00
|
|
|
install -Dm644 "$pkgdir/usr/lib/zotero/icons/icon128.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/zotero.png"
|
2023-04-23 21:16:07 +00:00
|
|
|
|
|
|
|
# Close shell when launching
|
|
|
|
sed -i -r 's:^("\$CALLDIR/zotero-bin" -app "\$CALLDIR/application.ini" "\$@"):exec \1:' "$pkgdir/usr/lib/zotero/zotero"
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
|
|
e1a0a4ff5cc1b53f13776ca11927d671426b0691e78e74a4adf2166d57bb2ae8ac409cc11a37ce5e2f680fdf05d5bc3849c33a9717aca1bb62d03ae5231a67fb zotero.desktop
|
2024-02-01 03:49:09 +00:00
|
|
|
27ca570df108cb9ffa48254f7cc5ef133371dcab652a12b2f636b87a2378d51afa6c118533d8b1779071441fa2b26663d2275db9d441f17dc7431dfdc90996ea zotero-client-7.0.0._20240131.tar.gz
|
|
|
|
74c99ba1dd4b23cb696936e18df9c4f55e178bf578818c1a858788c5ff261f8459f992cf4b59eed40e71d8143b4ee14e0a86ad558c2e376866afed52c1f6d74d xulrunner-get-alpine-firefox.patch
|
|
|
|
4e897cafc05eefbaf433cc17876d2c8c33f6a244b85418a9dd0e0c6b22528c770f175999ad5deaedeac4d4109496683879ac8420aa489230aad1800571790dfa build-sh-fix.patch
|
2023-04-23 21:16:07 +00:00
|
|
|
"
|