diff options
author | juanmah | 2015-06-15 20:10:01 +0200 |
---|---|---|
committer | juanmah | 2015-06-15 20:10:01 +0200 |
commit | ba23333a01e1228881bdcc36bdec6b4aeb08fe13 (patch) | |
tree | 33ce0a7f92c1805c6aced0fea2a7a44b4c321025 | |
download | aur-ba23333a01e1228881bdcc36bdec6b4aeb08fe13.tar.gz |
Moving to AUR4
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | zotero.desktop | 8 | ||||
-rw-r--r-- | zotero.install | 13 |
4 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0f2414b00a77 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = zotero + pkgdesc = Zotero Standalone. Is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources. + pkgver = 4.0.26.3 + pkgrel = 1 + url = http://www.zotero.org/download + install = zotero.install + arch = i686 + arch = x86_64 + license = GPL3 + depends = dbus-glib + depends = alsa-lib + depends = gtk2 + depends = gcc-libs + depends = nss + source = http://download.zotero.org/standalone/4.0.26.3/Zotero-4.0.26.3_linux-i686.tar.bz2 + source = zotero.desktop + md5sums = ea0d2b7151e9b610651d3a8fe7c1f1bd + md5sums = f227abe95940abd63367716928c6e379 + +pkgname = zotero + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bc63df0d27cd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor: Juanma Hernandez <juanmah@gmail.com> +# Maintainer: Juanma Hernandez <juanmah@gmail.com> + +pkgname=zotero +pkgver=4.0.26.3 +pkgrel=1 +pkgdesc="Zotero Standalone. Is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources." +arch=('i686' 'x86_64') +url="http://www.zotero.org/download" +license=('GPL3') +depends=('dbus-glib' 'alsa-lib' 'gtk2' 'gcc-libs' 'nss') +if [[ $CARCH == "x86_64" ]] +then + _arch=x86_64 + md5sums=('d46e52c7c4952aa97b2f27cebb462247' + 'f227abe95940abd63367716928c6e379') +else + _arch=i686 + md5sums=('ea0d2b7151e9b610651d3a8fe7c1f1bd' + 'f227abe95940abd63367716928c6e379') +fi +install='zotero.install' +source=("http://download.zotero.org/standalone/$pkgver/Zotero-${pkgver}_linux-${_arch}.tar.bz2" + "zotero.desktop") + +package() { + mkdir -p "$pkgdir"/usr/{bin,lib/zotero} + mv "$srcdir"/Zotero_linux-$_arch/* "$pkgdir"/usr/lib/zotero + ln -s /usr/lib/zotero/run-zotero.sh "$pkgdir"/usr/bin/zotero + sed -i -e 's|MOZ_PROGRAM=""|MOZ_PROGRAM="/usr/lib/zotero/zotero"|g' "$pkgdir"/usr/lib/zotero/run-zotero.sh + install -Dm644 "$srcdir"/zotero.desktop "$pkgdir"/usr/share/applications/zotero.desktop + # Copy zotero icons to a standard location + install -Dm644 "$pkgdir"/usr/lib/zotero/chrome/icons/default/default16.png "$pkgdir"/usr/share/icons/hicolor/16x16/apps/zotero.png + install -Dm644 "$pkgdir"/usr/lib/zotero/chrome/icons/default/default32.png "$pkgdir"/usr/share/icons/hicolor/32x32/apps/zotero.png + install -Dm644 "$pkgdir"/usr/lib/zotero/chrome/icons/default/default48.png "$pkgdir"/usr/share/icons/hicolor/48x48/apps/zotero.png +} diff --git a/zotero.desktop b/zotero.desktop new file mode 100644 index 000000000000..6d011d6c893c --- /dev/null +++ b/zotero.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Zotero +GenericName=Zotero Standalone. Is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources. +Icon=zotero +Exec=/usr/bin/zotero %f +Categories=Office +Terminal=false diff --git a/zotero.install b/zotero.install new file mode 100644 index 000000000000..565a7caface3 --- /dev/null +++ b/zotero.install @@ -0,0 +1,13 @@ +post_install() { + echo "Maybe you want the context menu icons enabled. This can be done in dconf or using the CLI:" + echo "gsettings set org.gnome.desktop.interface menus-have-icons true" + echo "DISCLAIMER: Notice that this is a system-wide configuration and it will change appearence in other programs too." + +} + +post_upgrade() { + # Only show information if upgrading from 4.0.6 or older + if [ $(vercmp $2 4.0.6-1) -le 0 ]; then + post_install + fi +} |