mirror of
https://github.com/archlinux/aur.git
synced 2026-03-09 04:39:51 +01:00
Moving to AUR4
This commit is contained in:
commit
ba23333a01
4 changed files with 78 additions and 0 deletions
21
.SRCINFO
Normal file
21
.SRCINFO
Normal file
|
|
@ -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
|
||||
|
||||
36
PKGBUILD
Normal file
36
PKGBUILD
Normal file
|
|
@ -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
|
||||
}
|
||||
8
zotero.desktop
Normal file
8
zotero.desktop
Normal file
|
|
@ -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
|
||||
13
zotero.install
Normal file
13
zotero.install
Normal file
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue