diff options
author | Petar Petrov <slackalaxy at gmail dot com> | 2023-05-01 11:49:22 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-06 08:28:23 +0700 |
commit | cbb78a81c2b4225c25428faa5ed62d790d9597c1 (patch) | |
tree | 389cb9ee68810b916539809d6f920847bb8efd74 /academic | |
parent | 4abf16408e49ea72205cad4a7cc1fbac3c35e823 (diff) |
academic/zotero-gtk2: Added (Collect and share research sources)
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r-- | academic/zotero-gtk2/README | 35 | ||||
-rw-r--r-- | academic/zotero-gtk2/doinst.sh | 9 | ||||
-rw-r--r-- | academic/zotero-gtk2/slack-desc | 19 | ||||
-rw-r--r-- | academic/zotero-gtk2/zotero-gtk2.SlackBuild | 93 | ||||
-rw-r--r-- | academic/zotero-gtk2/zotero-gtk2.info | 10 | ||||
-rw-r--r-- | academic/zotero-gtk2/zotero.desktop | 7 | ||||
-rw-r--r-- | academic/zotero-gtk2/zotero.png | bin | 0 -> 4963 bytes |
7 files changed, 173 insertions, 0 deletions
diff --git a/academic/zotero-gtk2/README b/academic/zotero-gtk2/README new file mode 100644 index 0000000000000..ca62239484db9 --- /dev/null +++ b/academic/zotero-gtk2/README @@ -0,0 +1,35 @@ +This is the last GTK2 version of Zotero. It will conflict with the +latest one, so don't install both. + +Zotero is a free, easy-to-use tool to help you collect, organize, +cite, and share research. + +Zotero is the only software that automatically senses research on +the web. Need an article from JSTOR or a preprint from arXiv.org? +A news story from the New York Times or a book from a library? +Zotero has you covered, everywhere. + +Zotero helps you organize your research any way you want. You can +sort items into collections and tag them with keywords. Or create +saved searches that automatically fill with relevant materials as +you work. + +Zotero instantly creates references and bibliographies for any +text editor, and directly inside Word, LibreOffice, and Google +Docs. With support for over 100,000 citation styles, you can +format your work to match any style guide or publication. + +Zotero can optionally synchronize your data across devices, +keeping your notes, files, and bibliographic records seamlessly +up to date. If you decide to sync, you can also always access +your research from any web browser. + +Zotero lets you co-write a paper with a colleague, distribute +course materials to students, or build a collaborative +bibliography. You can share a Zotero library with as many +people you like, at no cost. + +Zotero is open source and developed by an independent, +nonprofit organization that has no financial interest in your +private information. With Zotero, you always stay in control +of your own data. diff --git a/academic/zotero-gtk2/doinst.sh b/academic/zotero-gtk2/doinst.sh new file mode 100644 index 0000000000000..65c7e2eeb9aa5 --- /dev/null +++ b/academic/zotero-gtk2/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/academic/zotero-gtk2/slack-desc b/academic/zotero-gtk2/slack-desc new file mode 100644 index 0000000000000..fa0f527cb590a --- /dev/null +++ b/academic/zotero-gtk2/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +zotero-gtk2: zotero-gtk2 (Collect, organize, cite, and share research sources) +zotero-gtk2: +zotero-gtk2: Zotero is a free, easy-to-use tool to help you collect, organize, +zotero-gtk2: cite, and share research. This is the last GTK2 version of Zotero. +zotero-gtk2: If you are looking for the newest one, install "zotero", instead. +zotero-gtk2: +zotero-gtk2: Homepage: https://www.zotero.org/ +zotero-gtk2: +zotero-gtk2: +zotero-gtk2: +zotero-gtk2: diff --git a/academic/zotero-gtk2/zotero-gtk2.SlackBuild b/academic/zotero-gtk2/zotero-gtk2.SlackBuild new file mode 100644 index 0000000000000..a758a63504e63 --- /dev/null +++ b/academic/zotero-gtk2/zotero-gtk2.SlackBuild @@ -0,0 +1,93 @@ +#!/bin/bash + +# Slackware build script for <zotero-gtk2> + +# Copyright 2023 Petar Petrov slackalaxy at gmail dot com +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=zotero-gtk2 +SRCNAM=Zotero +VERSION=${VERSION:-4.0.28} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i686 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +if [ "$ARCH" != "i686" ] && [ "$ARCH" != "x86_64" ]; then + printf "\n\n$ARCH is not supported... \n" + exit 1 +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-${VERSION}_linux-$ARCH +tar xvf $CWD/$SRCNAM-${VERSION}_linux-$ARCH.tar.bz2 +cd ${SRCNAM}_linux-$ARCH +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +sed -i -e 's:MOZ_PROGRAM="":MOZ_PROGRAM="/opt/zotero/zotero":g' run-zotero.sh + +mkdir -p $PKG/opt/zotero +cp -a * $PKG/opt/zotero + +mkdir -p $PKG/usr/bin +cd $PKG/usr/bin +ln -s ../../opt/zotero/run-zotero.sh zotero + +mkdir -p $PKG/usr/share/{applications,pixmaps} +cp $CWD/zotero.desktop $PKG/usr/share/applications +cp $CWD/zotero.png $PKG/usr/share/pixmaps + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/academic/zotero-gtk2/zotero-gtk2.info b/academic/zotero-gtk2/zotero-gtk2.info new file mode 100644 index 0000000000000..2feff911d9e35 --- /dev/null +++ b/academic/zotero-gtk2/zotero-gtk2.info @@ -0,0 +1,10 @@ +PRGNAM="zotero-gtk2" +VERSION="4.0.28" +HOMEPAGE="https://www.zotero.org/" +DOWNLOAD="https://download.zotero.org/client/release/4.0.28/Zotero-4.0.28_linux-i686.tar.bz2" +MD5SUM="a5cb40b79b26dbe4fb29b8e9fdb61a9f" +DOWNLOAD_x86_64="https://download.zotero.org/client/release/4.0.28/Zotero-4.0.28_linux-x86_64.tar.bz2" +MD5SUM_x86_64="55f743aa7c08ca16d933e91faf43a2fc" +REQUIRES="" +MAINTAINER="Petar Petrov" +EMAIL="slackalaxy at gmail dot com" diff --git a/academic/zotero-gtk2/zotero.desktop b/academic/zotero-gtk2/zotero.desktop new file mode 100644 index 0000000000000..24e542f951120 --- /dev/null +++ b/academic/zotero-gtk2/zotero.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Zotero Standalone +Icon=zotero +Exec=zotero %f +Categories=Office +Terminal=false diff --git a/academic/zotero-gtk2/zotero.png b/academic/zotero-gtk2/zotero.png Binary files differnew file mode 100644 index 0000000000000..fe80851fb3aa3 --- /dev/null +++ b/academic/zotero-gtk2/zotero.png |