Username: Password: Remember me
# Maintainer: Martin F. Schumann (mfs) <mfs@mfs.name>
# Contributor: Simone Gaiarin <simgunz@gmail.com>
 
pkgname=zotero
pkgver=4.0.16
pkgrel=2
pkgdesc='Zotero Standalone. Is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.'
arch=('x86_64')
url='http://www.zotero.org/support/standalone'
license=('GPL3')
md5sums=('673ecf1cb828ca212678417c89ffdd1a'
         '674e673bbf5fd3e79a33567a001b25e4')
source=("http://download.zotero.org/standalone/$pkgver/Zotero-${pkgver}_linux-x86_64.tar.bz2"
        'zotero.desktop')
 
package() {
 
    mkdir -p $pkgdir/usr/lib/zotero
    mkdir -p $pkgdir/usr/bin
    mv "$srcdir/Zotero_linux-x86_64/"* "$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"
}