Files
chromebrew/packages/lazygit.rb
2025-09-14 07:55:32 +00:00

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.55.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: '063948635231925b3877eaa19eda0d31fa51ad143e53feef653487030c6f2ed8',
armv7l: '063948635231925b3877eaa19eda0d31fa51ad143e53feef653487030c6f2ed8',
i686: '5c1383a58683df66ea8a5521893d0bf9a0f5f9f4593a13d2a4738d3af987b4be',
x86_64: 'e7c1c2d127ebdb241398f3daf05907a71a0c977ff12beba6b8ebdb069f9dba6a'
})
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