Files
chromebrew/packages/libxt.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

33 lines
932 B
Ruby

require 'package'
class Libxt < Package
description 'X.org X Toolkit Library'
homepage 'https://www.x.org'
version '1.2.1'
license 'custom'
compatibility 'all'
source_url 'https://www.x.org/archive/individual/lib/libXt-1.2.1.tar.gz'
source_sha256 '6da1bfa9dd0ed87430a5ce95b129485086394df308998ebe34d98e378e3dfb33'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'a7ff82ccb3d878142449b1b61b4523a37c02a6341588165541159175d313dabf',
armv7l: 'a7ff82ccb3d878142449b1b61b4523a37c02a6341588165541159175d313dabf',
i686: '12408a157c8b17f0d32a2166ed9ae6de560985bce948d8da0ad4ad9be895fbf9',
x86_64: 'c59be078d6b5120a57ee6a0ee21caea62e9f6a227855e014a3b661c3400e50f0'
})
depends_on 'libsm'
depends_on 'libx11'
patchelf
def self.build
system "./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end