From a02e7011f3cd8d34ad9541d2a3c260cbaf9676db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanma=20Hern=C3=A1ndez?= Date: Thu, 13 Jul 2017 07:10:01 +0200 Subject: [PATCH] Update to version 5.0.2. Applied suggested changes in comments and in namcap --- .SRCINFO | 10 ++++++---- PKGBUILD | 27 ++++++++++++--------------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index b6e7031b5186..9ac2ee838ea3 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = zotero pkgdesc = Zotero Standalone. Is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources. - pkgver = 5.0.1 - pkgrel = 1 + pkgver = 5.0.2 + pkgrel = 3 url = http://www.zotero.org/download install = zotero.install arch = i686 @@ -12,10 +12,12 @@ pkgbase = zotero depends = gtk2 depends = gcc-libs depends = nss - source = http://download.zotero.org/standalone/5.0.1/Zotero-5.0.1_linux-x86_64.tar.bz2 source = zotero.desktop - md5sums = 969dbbc0bfaf1385d455d7fcae22e109 md5sums = f227abe95940abd63367716928c6e379 + source_i686 = Zotero-5.0.2_linux_x86_64.tar.bz2::https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=5.0.2 + md5sums_i686 = 1dd4fba22dc4718359e789d9df2b4afd + source_x86_64 = Zotero-5.0.2_linux_x86_64.tar.bz2::https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=5.0.2 + md5sums_x86_64 = b154fa051050c6cb4431dacca0278ba8 pkgname = zotero diff --git a/PKGBUILD b/PKGBUILD index da676527f4ba..67e7174b0058 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,30 +2,27 @@ # Maintainer: Juanma Hernandez pkgname=zotero -pkgver=5.0.1 -pkgrel=1 +pkgver=5.0.2 +pkgrel=3 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=('969dbbc0bfaf1385d455d7fcae22e109' - 'f227abe95940abd63367716928c6e379') -else - _arch=i686 - md5sums=('a8dc90f2c894581afd0afb11294f8882' - 'f227abe95940abd63367716928c6e379') -fi + +md5sums=('f227abe95940abd63367716928c6e379') +md5sums_i686=('1dd4fba22dc4718359e789d9df2b4afd') +md5sums_x86_64=('b154fa051050c6cb4431dacca0278ba8') + install='zotero.install' -source=("http://download.zotero.org/standalone/$pkgver/Zotero-${pkgver}_linux-${_arch}.tar.bz2" - "zotero.desktop") + +source=("zotero.desktop") +source_i686=("Zotero-${pkgver}_linux_$CARCH.tar.bz2::https://www.zotero.org/download/client/dl?channel=release&platform=linux-$CARCH&version=${pkgver}") +source_x86_64=("Zotero-${pkgver}_linux_$CARCH.tar.bz2::https://www.zotero.org/download/client/dl?channel=release&platform=linux-$CARCH&version=${pkgver}") package() { mkdir -p "$pkgdir"/usr/{bin,lib/zotero} - mv "$srcdir"/Zotero_linux-$_arch/* "$pkgdir"/usr/lib/zotero + mv "$srcdir"/Zotero_linux-$CARCH/* "$pkgdir"/usr/lib/zotero ln -s /usr/lib/zotero/zotero "$pkgdir"/usr/bin/zotero install -Dm644 "$srcdir"/zotero.desktop "$pkgdir"/usr/share/applications/zotero.desktop # Copy zotero icons to a standard location