updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / zotero / PKGBUILD
blob9ed81f3e2e0bddc25bc5579179e2d10757f26e5d
1 # Contributor: Juanma Hernandez <juanmah@gmail.com>
2 # Maintainer: Juanma Hernandez <juanmah@gmail.com>
4 pkgname=zotero
5 pkgver=3.0rc1.1
6 pkgrel=1
7 pkgdesc='Zotero Standalone. Is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.'
8 arch=('i686' 'x86_64')
9 url='http://www.zotero.org/support/standalone'
10 license=('GPL3')
11 _arch=i686
12 [ "$CARCH" = "x86_64" ] && _arch=x86_64
13 source=(http://download.zotero.org/standalone/$pkgver/Zotero-${pkgver}_linux-${_arch}.tar.bz2)
14 md5sums=('a869c94a9921c7b8caf07b3257636365')
15 [ "$CARCH" = "x86_64" ] && md5sums=('9144abdf5e6c855451df07cbffd08cd0')
17 build() {
19         mkdir -p $pkgdir/usr/lib/zotero
20         mkdir -p $pkgdir/usr/bin
21         mv $srcdir/Zotero_linux-$_arch/* $pkgdir/usr/lib/zotero
22         ln -s /usr/lib/zotero/run-zotero.sh $pkgdir/usr/bin/zotero
23         sed -i -e 's/MOZ_APPRUNNER_NAME=".\/zotero"/MOZ_APPRUNNER_NAME="\/usr\/lib\/zotero\/zotero"/g' $pkgdir/usr/lib/zotero/run-zotero.sh