require 'package' class Lazygit < Package description 'A simple terminal UI for git commands' homepage 'https://github.com/jesseduffield/lazygit' version '0.60.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: '163c693791840468101d80955e610f46bda167edcd268d08f3aa1bc0edf5b218', armv7l: '163c693791840468101d80955e610f46bda167edcd268d08f3aa1bc0edf5b218', i686: 'e95fe55a2a1386275f3d2584152df31f759b6ce8abf8605a55cdaea9ec8788a9', x86_64: '6252ca6cf98bc4fd3e0d927b54225910cfa57b065d0ad88263f14592f7f9ab15' }) 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