summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhaofeng Li2020-09-13 23:34:56 -0700
committerZhaofeng Li2020-09-13 23:34:56 -0700
commitac7841300ad3f84b31e0ce85e995472dd6870ced (patch)
treed8b45976c03c0258eea98cc212e6dfcd2ea75165
parent8e16b6a5c923c8baa8562cc59dbb53cfd29aac6b (diff)
downloadaur-ac7841300ad3f84b31e0ce85e995472dd6870ced.tar.gz
Add optdepends for PDF indexing
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
2 files changed, 13 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 814cf10d667..46c882668e8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = zotero-arm-bin
pkgdesc = Zotero Standalone is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources (ARM Binaries)
pkgver = 5.0.89
- pkgrel = 2
+ pkgrel = 3
url = http://www.zotero.org/download
install = zotero.install
arch = aarch64
@@ -12,6 +12,8 @@ pkgbase = zotero-arm-bin
depends = nss
depends = libxt
depends = startup-notification
+ optdepends = zotero-xpdf: PDF indexing
+ optdepends = poppler-data: PDF indexing
provides = zotero=5.0.89
conflicts = zotero
source = zotero.desktop
diff --git a/PKGBUILD b/PKGBUILD
index 191fd1d0593..f3db9c08f21 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=zotero-arm-bin
pkgver=5.0.89
-pkgrel=2
+pkgrel=3
pkgdesc="Zotero Standalone is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources (ARM Binaries)"
arch=('aarch64' 'armv7h')
url="http://www.zotero.org/download"
@@ -12,6 +12,8 @@ depends=('dbus-glib' 'gtk3' 'nss' 'libxt' 'startup-notification')
provides=("zotero=${pkgver}")
conflicts=('zotero')
optdepends=(
+ 'zotero-xpdf: PDF indexing'
+ 'poppler-data: PDF indexing'
)
install='zotero.install'
@@ -55,6 +57,11 @@ package() {
# Remove poppler binaries
rm -r "${pkgdir}/usr/lib/zotero/"{pdftotext,pdfinfo,poppler-data}
+ # Link binaries from zotero-xpdf (optional)
+ ln -s /usr/lib/zotero-xpdf/pdfinfo "${pkgdir}/usr/lib/zotero/pdfinfo"
+ ln -s /usr/lib/zotero-xpdf/pdftotext "${pkgdir}/usr/lib/zotero/pdftotext"
+ ln -s /usr/share/poppler "${pkgdir}/usr/lib/zotero/poppler-data"
+
# Replace Firefox binaries
#
# I know you might want to vomit right now, but the official packaging
@@ -74,3 +81,5 @@ package() {
install -Dm755 firefox/firefox "${pkgdir}/usr/lib/zotero/zotero-bin"
install -Dm644 firefox/dependentlibs.list "${pkgdir}/usr/lib/zotero/dependentlibs.list"
}
+
+# vim: et ts=2 sw=2: