Files
chromebrew/packages/difftastic.rb
chromebrew-actions[bot] 38439537ab gparted -> 1.8.1 in updater-gparted-1.8.1 — gparted: 1.8.0 → 1.8.1 (#15055)
* gparted -> 1.8.1 in updater-gparted-1.8.1

* updater-gparted-1.8.1: Package File Update Run on linux/amd64 container.

* updater-gparted-1.8.1: Package File Update Run on linux/arm/v7 container.

* updater-gparted-1.8.1: Package File Update Run on linux/amd64 container.

* Cleanup gparted.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update dependencies to use :executable instead of :executable_only

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2026-03-19 00:13:29 +00:00

35 lines
1.1 KiB
Ruby

require 'package'
class Difftastic < Package
description 'Difftastic is a structural diff tool that compares files based on their syntax.'
homepage 'https://github.com/Wilfred/difftastic'
version '0.68.0'
license 'MIT'
compatibility 'all'
source_url 'https://github.com/Wilfred/difftastic.git'
git_hashtag version
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'c5ecce7b363e22accaa11a59d870bec4e808c1862cfbda614ef59034ed510bac',
armv7l: 'c5ecce7b363e22accaa11a59d870bec4e808c1862cfbda614ef59034ed510bac',
i686: '06caf0d4772cb89ca27735af4b69719f774ee7af81720190a036ba98ec69291c',
x86_64: 'b8cd8832d04cf84b0afd6e1f461604587dd3fc30bb47568523d0b5025f6f3b94'
})
depends_on 'gcc_lib' => :executable
depends_on 'glibc' => :executable
depends_on 'rust' => :build
def self.install
system "cargo install \
--locked difftastic \
--path . --root #{CREW_DEST_PREFIX}"
FileUtils.rm_rf Dir["#{CREW_DEST_PREFIX}/.crate*"]
end
def self.postinstall
ExitMessage.add "\nType 'difft' to get started.\n"
end
end