35 lines
753 B
Bash
35 lines
753 B
Bash
# Copyright 2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
MY_PN="Zotero"
|
|
|
|
DESCRIPTION="A tool to help you collect, organize, cite, and share your research sources"
|
|
HOMEPAGE="https://www.zotero.org/"
|
|
SRC_URI="https://download.zotero.org/client/release/${PV}/Zotero-${PV}_linux-x86_64.tar.bz2"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
DEPEND=""
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=""
|
|
|
|
S="${WORKDIR}/Zotero_linux-x86_64"
|
|
|
|
ZOTERO_INSTALL_DIR="/opt/Zotero"
|
|
|
|
src_install() {
|
|
dodir ${ZOTERO_INSTALL_DIR}
|
|
cp -a "${S}"/. "${D}${ZOTERO_INSTALL_DIR}"
|
|
|
|
for i in 16 32 48 256; do
|
|
newicon -s ${i} chrome/icons/default/default${i}.png ${PN}.png
|
|
done
|
|
|
|
make_desktop_entry "/opt/Zotero/zotero" Zotero zotero Office
|
|
}
|
|
|