mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
36 lines
1.2 KiB
Ruby
36 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Zotero < Package
|
|
description 'Zotero is a free, easy-to-use tool to help you collect, organize, annotate, cite, and share research.'
|
|
homepage 'https://www.zotero.org/'
|
|
version '7.0.30'
|
|
license 'GPL-3'
|
|
compatibility 'x86_64'
|
|
source_url "https://download.zotero.org/client/release/#{version}/Zotero-#{version}_linux-x86_64.tar.bz2"
|
|
source_sha256 'b95d11d0bf04a19b79f6130a5c5949f8484e340acfa516dbfed215fb064a2e06'
|
|
|
|
depends_on 'dbus_glib'
|
|
depends_on 'gtk3'
|
|
|
|
gnome
|
|
no_compile_needed
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/zotero"
|
|
FileUtils.mv %w[fonts icons], "#{CREW_DEST_PREFIX}/share"
|
|
FileUtils.install 'zotero.desktop', "#{CREW_DEST_PREFIX}/share/applications/zotero.desktop", mode: 0o644
|
|
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/zotero"
|
|
FileUtils.ln_s "#{CREW_PREFIX}/share/zotero/zotero", "#{CREW_DEST_PREFIX}/bin/zotero"
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'zotero' to get started.\n"
|
|
end
|
|
|
|
def self.postremove
|
|
Package.agree_to_remove("#{HOME}/Zotero")
|
|
Package.agree_to_remove("#{HOME}/.zotero")
|
|
end
|
|
end
|