Files
chromebrew/packages/xmlstarlet.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

33 lines
1.3 KiB
Ruby

require 'buildsystems/autotools'
class Xmlstarlet < Autotools
description 'XMLStarlet is a command line XML toolkit which can be used to transform, query, validate, and edit XML documents and files using simple set of shell commands in similar way it is done for plain text files using grep/sed/awk/tr/diff/patch.'
homepage 'https://xmlstar.sourceforge.net/'
version '1.6.1'
license 'MIT'
compatibility 'all'
source_url "https://downloads.sourceforge.net/project/xmlstar/xmlstarlet/#{version}/xmlstarlet-#{version}.tar.gz"
source_sha256 '15d838c4f3375332fd95554619179b69e4ec91418a3a5296e7c631b7ed19e7ca'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '16bc087a81954a1fb85bc0bba87fbb4a7ad82f6ced461ba73edacccb90b0c652',
armv7l: '16bc087a81954a1fb85bc0bba87fbb4a7ad82f6ced461ba73edacccb90b0c652',
i686: '0b32e2295e2ff530e5532d14adc4634e0ade37e27855e16973cd54dd8ad6bff2',
x86_64: 'e6d96615719b3c47d0d6c558cd651dea02387af7baca0ab1cf8b22e8b6b6e221'
})
depends_on 'glibc' => :executable
depends_on 'libxml2' => :executable
depends_on 'libxslt' => :executable
def self.patch
system "sed -i 's, ATTRIBUTE_UNUSED,,g' src/xml_pyx.c"
end
autotools_install_extras do
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.ln_s "#{CREW_PREFIX}/bin/xml", "#{CREW_DEST_PREFIX}/bin/xmlstarlet"
end
end