Github messages for voidlinux
 help / color / mirror / Atom feed
From: sprocklem <sprocklem@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package request: Zotero
Date: Sun, 31 Jul 2022 01:53:40 +0200	[thread overview]
Message-ID: <20220730235340.oC_UNsQvEyfHeeS-9ORkeqVPd2SpLNr0DJ1isAwDMxw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25508@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2067 bytes --]

New comment by sprocklem on void-packages repository

https://github.com/void-linux/void-packages/issues/25508#issuecomment-1200313957

Comment:
I've been using (some version of) the following package template (based on the official binary release) for several months now and it seems to work fine for me. It is not ready for release however, as it does not install the required license (which is not AFAICT distributed in the official release tarball) and probably needs a better `short_desc`. `./xpbs-src update-check zotero` also doesn't work, but I haven't taken the time to fix that.

```
# Template file for 'zotero'
pkgname=zotero
version=6.0.10
revision=1
wrksrc="Zotero_linux-${XBPS_TARGET_MACHINE}"
short_desc="Research assistant tool"
maintainer="Maeve Sproule <sprocklem@gmail.com>"
license="AGPL-3.0-only"
homepage="https://www.zotero.org/"
distfiles="https://download.zotero.org/client/release/${version}/Zotero-${version}_linux-${XBPS_TARGET_MACHINE}.tar.bz2>Zotero-${version}-linux.tar.bz2"
checksum=f9115314e6557f4c3d1c1964d39a44b2cb2216511a3c9f574eadbd429b888a5f
nopie=1

do_install() {
	# Usually modified from the 'set_launcher_icon' script.
	sed -i -e 's|^Icon=.*|Icon=/opt/zotero/chrome/icons/default/default256.png|' zotero.desktop
	# Also fix this up since zotero's in the path:
	sed -i -e 's/^Exec=.*/Exec=zotero -url %U/' zotero.desktop
	# Disable app update, borrowed from AUR's zotero-bin package.
	sed -i '/pref("app.update.enabled", true);/c\pref("app.update.enabled", false);' defaults/preferences/prefs.js

	vmkdir usr/share/applications
	vcopy zotero.desktop usr/share/applications/zotero.desktop

	sed -i -e 's|^CALLDIR=.*|CALLDIR=/opt/zotero|' zotero
	vbin zotero

	vmkdir opt/zotero
	vcopy '*' opt/zotero
}
```

I don't recall why I used `nopie=1` (or if it was even needed).

Edit: I honestly see no reason why I'm not seeing the same XPCOM error that harrisonthorne reported. Maybe because I have firefox installed? Maybe whatever was causing it was fixed in the intervening year and a half?

      parent reply	other threads:[~2022-07-30 23:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-11  4:02 [ISSUE] " harrisonthorne
2020-10-11  4:06 ` ericonr
2020-10-11  4:43 ` harrisonthorne
2020-10-11  4:43 ` harrisonthorne
2020-10-11  6:32 ` harrisonthorne
2020-10-22 16:45 ` b1scu1t
2021-04-16 13:18 ` Veganizer
2021-04-16 13:19 ` Veganizer
2021-04-16 13:26 ` Veganizer
2022-07-30 23:45 ` sprocklem
2022-07-30 23:45 ` sprocklem
2022-07-30 23:46 ` sprocklem
2022-07-30 23:50 ` sprocklem
2022-07-30 23:52 ` sprocklem
2022-07-30 23:53 ` sprocklem [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220730235340.oC_UNsQvEyfHeeS-9ORkeqVPd2SpLNr0DJ1isAwDMxw@z \
    --to=sprocklem@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).