mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
37 lines
1.4 KiB
Ruby
37 lines
1.4 KiB
Ruby
require 'package'
|
|
|
|
class Lazygit < Package
|
|
description 'A simple terminal UI for git commands'
|
|
homepage 'https://github.com/jesseduffield/lazygit'
|
|
version '0.56.0'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url({
|
|
aarch64: "https://github.com/jesseduffield/lazygit/releases/download/v#{version}/lazygit_#{version}_linux_armv6.tar.gz",
|
|
armv7l: "https://github.com/jesseduffield/lazygit/releases/download/v#{version}/lazygit_#{version}_linux_armv6.tar.gz",
|
|
i686: "https://github.com/jesseduffield/lazygit/releases/download/v#{version}/lazygit_#{version}_linux_32-bit.tar.gz",
|
|
x86_64: "https://github.com/jesseduffield/lazygit/releases/download/v#{version}/lazygit_#{version}_linux_x86_64.tar.gz"
|
|
})
|
|
source_sha256({
|
|
aarch64: '7fc078e735fd08a8ba7dd514025432443c8f3b576220be8873c661d173fe86df',
|
|
armv7l: '7fc078e735fd08a8ba7dd514025432443c8f3b576220be8873c661d173fe86df',
|
|
i686: '9c5d5920a4deb8ba5735f2a3df7627a03926d637609e74c57595a3ee38750a5f',
|
|
x86_64: 'ced13c2ae074bbf6c201bc700ee2971e193b811c3b2ae0ed4d00d6225c6c9ab7'
|
|
})
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
|
|
def self.install
|
|
FileUtils.install 'lazygit', "#{CREW_DEST_PREFIX}/bin/lazygit", mode: 0o755
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'lazygit' to get started.\n"
|
|
end
|
|
|
|
def self.postremove
|
|
Package.agree_to_remove("#{HOME}/.local/state/lazygit")
|
|
end
|
|
end
|