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 /PKGBUILD | |
download | aur-ba23333a01e1228881bdcc36bdec6b4aeb08fe13.tar.gz |
Moving to AUR4
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
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 +} |