mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-07 22:54:11 -05:00
56 lines
1.6 KiB
Ruby
56 lines
1.6 KiB
Ruby
require 'package'
|
|
require 'misc_functions'
|
|
|
|
class Monero_gui < Package
|
|
description 'Private, decentralized cryptocurrency that keeps your finances confidential and secure.'
|
|
homepage 'https://www.getmonero.org/'
|
|
version '0.18.4.4'
|
|
license 'The Cryptonote developers,The Boolberry developers,MIT'
|
|
compatibility 'x86_64'
|
|
source_url "https://downloads.getmonero.org/gui/monero-gui-linux-x64-v#{version}.tar.bz2"
|
|
source_sha256 'e45cb3fa9d972d67628cfed6463fb7604ae1414a11ba449f5e2f901c769ac788'
|
|
|
|
depends_on 'monero' # R
|
|
depends_on 'xcb_util' # R
|
|
depends_on 'xcb_util_image' # R
|
|
depends_on 'xcb_util_keysyms' # R
|
|
depends_on 'xcb_util_renderutil' # R
|
|
depends_on 'xcb_util_wm' # R
|
|
depends_on 'sommelier' # R
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
|
|
def self.preflight
|
|
MiscFunctions.check_free_disk_space(425302426)
|
|
end
|
|
|
|
def self.build
|
|
File.write 'monero.sh', <<~EOF
|
|
#!/bin/bash
|
|
GDK_BACKEND=x11 #{CREW_PREFIX}/bin/monero-wallet-gui "$@"
|
|
EOF
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/monero"
|
|
FileUtils.mv 'monero-wallet-gui', "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.install 'monero.sh', "#{CREW_DEST_PREFIX}/bin/monero", mode: 0o755
|
|
FileUtils.mv 'monero-gui-wallet-guide.pdf', "#{CREW_DEST_PREFIX}/share/monero"
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add <<~EOF
|
|
|
|
Type 'monero' to get started.
|
|
To view the user guide, execute the following:
|
|
crew install zathura && zathura #{CREW_PREFIX}/share/monero/monero-gui-wallet-guide.pdf
|
|
EOF
|
|
end
|
|
|
|
def self.postremove
|
|
Package.agree_to_remove("#{HOME}/.bitmonero")
|
|
end
|
|
end
|