Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package request: Zotero
@ 2020-10-11  4:02 harrisonthorne
  2020-10-11  4:06 ` ericonr
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: harrisonthorne @ 2020-10-11  4:02 UTC (permalink / raw)
  To: ml

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

New issue by harrisonthorne on void-packages repository

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

Description:
Zotero is a neat looking tool for bibliographies and for helping research. I've found it useful for school and I think others might find some good use out of it. :)

[GitHub page](https://github.com/zotero/zotero)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
@ 2020-10-11  4:06 ` ericonr
  2020-10-11  4:43 ` harrisonthorne
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericonr @ 2020-10-11  4:06 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

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

Comment:
See #21434 

It's an extremely complicated package, using their released versions is probably the best option.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
  2020-10-11  4:06 ` ericonr
@ 2020-10-11  4:43 ` harrisonthorne
  2020-10-11  4:43 ` harrisonthorne
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: harrisonthorne @ 2020-10-11  4:43 UTC (permalink / raw)
  To: ml

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

New comment by harrisonthorne on void-packages repository

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

Comment:
From Zotero's download page, this is the resulting download link:

https://download.zotero.org/client/release/5.0.91/Zotero-5.0.91_linux-x86_64.tar.bz2

So `distfiles` could be `https://download.zotero.org/client/release/${version}/Zotero-${version}_linux-${XBPS_MACHINE}.tar.bz2`?

Where should I extract these files? On my system I extracted them to `/opt/zotero`, which would probably turn into `/opt/${pkgname}`. Would that be okay?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero 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
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: harrisonthorne @ 2020-10-11  4:43 UTC (permalink / raw)
  To: ml

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

New comment by harrisonthorne on void-packages repository

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

Comment:
From Zotero's download page, this is the resulting download link:

https://download.zotero.org/client/release/5.0.91/Zotero-5.0.91_linux-x86_64.tar.bz2

So `distfiles` could be `https://download.zotero.org/client/release/${version}/Zotero-${version}_linux-${XBPS_MACHINE}.tar.bz2`?

Where should I extract these files? On my system I extracted them to `/opt/zotero`, which would probably turn into `/opt/${pkgname}`. Would that be okay?

Edit: It seems clear enough at this point that I could write the template file. Just need to confirm the questions in this comment :)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (2 preceding siblings ...)
  2020-10-11  4:43 ` harrisonthorne
@ 2020-10-11  6:32 ` harrisonthorne
  2020-10-22 16:45 ` b1scu1t
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: harrisonthorne @ 2020-10-11  6:32 UTC (permalink / raw)
  To: ml

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

New comment by harrisonthorne on void-packages repository

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

Comment:
Here's what I've got so far:

```bash
# Template file for 'Zotero'
pkgname=Zotero
version=5.0.91
revision=1
wrksrc="Zotero_linux-${XBPS_MACHINE}"
short_desc="Easy-to-use tool to help collect, organize, cite, and share research"
maintainer="Harrison Thorne <harrisonthorne@protonmail.com>"
license="AGPL-3.0-or-later"
homepage="https://www.zotero.org/"
distfiles="https://download.zotero.org/client/release/${version}/Zotero-${version}_linux-${XBPS_MACHINE}.tar.bz2"
nopie=yes
checksum=429afb0ef9e8cfa17a89424fd38f7a43841b697709bfc4e647beba62e7943b65

do_install() {
	vmkdir "opt/${pkgname}"
	vcopy * "opt/${pkgname}"
}

post_install() {
	./set_launcher_icon
}
```

When I try to start zotero from the command line, however, I get "Couldn't load XPCOM". I'm guessing this is a dependency issue (dependency missing?) but I've gotta get to bed. Let me know if you figure this out before I do :)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (3 preceding siblings ...)
  2020-10-11  6:32 ` harrisonthorne
@ 2020-10-22 16:45 ` b1scu1t
  2021-04-16 13:18 ` Veganizer
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: b1scu1t @ 2020-10-22 16:45 UTC (permalink / raw)
  To: ml

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

New comment by b1scu1t on void-packages repository

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

Comment:
I think I would look at Arch's (AUR) pkgbuild file for reference.
This app is a lifesaver for uni students!


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (4 preceding siblings ...)
  2020-10-22 16:45 ` b1scu1t
@ 2021-04-16 13:18 ` Veganizer
  2021-04-16 13:19 ` Veganizer
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Veganizer @ 2021-04-16 13:18 UTC (permalink / raw)
  To: ml

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

New comment by Veganizer on void-packages repository

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

Comment:
XPCOM belongs to the Firefox Runtime xulrunner
https://github.com/duanyao/xulrunner-stub/blob/master/src/stub/nsXPCOMPrivate.h

It is outdated since firefox 41
https://github.com/zotero/translation-server-old/issues/24

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (5 preceding siblings ...)
  2021-04-16 13:18 ` Veganizer
@ 2021-04-16 13:19 ` Veganizer
  2021-04-16 13:26 ` Veganizer
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Veganizer @ 2021-04-16 13:19 UTC (permalink / raw)
  To: ml

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

New comment by Veganizer on void-packages repository

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

Comment:
XPCOM belongs to the Firefox Runtime xulrunner
https://github.com/duanyao/xulrunner-stub/blob/master/src/stub/nsXPCOMPrivate.h

It is outdated since firefox 41
https://github.com/zotero/translation-server-old/issues/24

Seems to be updated:
https://github.com/zotero/translation-server-old/pull/34
So you need Firefox SDK at least. Maybe you can package it?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (6 preceding siblings ...)
  2021-04-16 13:19 ` Veganizer
@ 2021-04-16 13:26 ` Veganizer
  2022-07-30 23:45 ` sprocklem
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Veganizer @ 2021-04-16 13:26 UTC (permalink / raw)
  To: ml

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

New comment by Veganizer on void-packages repository

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

Comment:
XPCOM belongs to the Firefox Runtime xulrunner
https://github.com/duanyao/xulrunner-stub/blob/master/src/stub/nsXPCOMPrivate.h

It is outdated since firefox 41
https://github.com/zotero/translation-server-old/issues/24

Seems to be updated:
https://github.com/zotero/translation-server-old/pull/34
So you need Firefox SDK at least. Maybe you can package it?

I have found following pages too:
https://extensionworkshop.com/documentation/develop/comparison-with-xul-xpcom-extensions/
https://extensionworkshop.com/documentation/develop/porting-a-legacy-firefox-extension/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (7 preceding siblings ...)
  2021-04-16 13:26 ` Veganizer
@ 2022-07-30 23:45 ` sprocklem
  2022-07-30 23:45 ` sprocklem
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sprocklem @ 2022-07-30 23:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1774 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 for several months now and it seems to work fine. 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:
	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).

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (8 preceding siblings ...)
  2022-07-30 23:45 ` sprocklem
@ 2022-07-30 23:45 ` sprocklem
  2022-07-30 23:46 ` sprocklem
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sprocklem @ 2022-07-30 23:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1781 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 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:
	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).

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (9 preceding siblings ...)
  2022-07-30 23:45 ` sprocklem
@ 2022-07-30 23:46 ` sprocklem
  2022-07-30 23:50 ` sprocklem
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sprocklem @ 2022-07-30 23:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1820 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:
	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).

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (10 preceding siblings ...)
  2022-07-30 23:46 ` sprocklem
@ 2022-07-30 23:50 ` sprocklem
  2022-07-30 23:52 ` sprocklem
  2022-07-30 23:53 ` sprocklem
  13 siblings, 0 replies; 15+ messages in thread
From: sprocklem @ 2022-07-30 23:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1964 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:
	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?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (11 preceding siblings ...)
  2022-07-30 23:50 ` sprocklem
@ 2022-07-30 23:52 ` sprocklem
  2022-07-30 23:53 ` sprocklem
  13 siblings, 0 replies; 15+ messages in thread
From: sprocklem @ 2022-07-30 23:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2040 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:
	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?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Package request: Zotero
  2020-10-11  4:02 [ISSUE] Package request: Zotero harrisonthorne
                   ` (12 preceding siblings ...)
  2022-07-30 23:52 ` sprocklem
@ 2022-07-30 23:53 ` sprocklem
  13 siblings, 0 replies; 15+ messages in thread
From: sprocklem @ 2022-07-30 23:53 UTC (permalink / raw)
  To: ml

[-- 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?

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-07-30 23:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-11  4:02 [ISSUE] Package request: Zotero 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 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).