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

38 lines
1.1 KiB
Ruby

require 'package'
class Libglvnd < Package
description 'The GL Vendor-Neutral Dispatch library'
homepage 'https://gitlab.freedesktop.org/glvnd/libglvnd'
version '1.6.0'
license 'MIT'
compatibility 'all'
source_url 'https://gitlab.freedesktop.org/glvnd/libglvnd.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '52555ba2aab442a4d3b336e164ad35f64ec8ea09db9340751729363e6e5d51ba',
armv7l: '52555ba2aab442a4d3b336e164ad35f64ec8ea09db9340751729363e6e5d51ba',
i686: '14fbc324b9e8cd2d168af66add8f40e6b55ac7068a30df0fcefa66c5ebe3f1a3',
x86_64: 'e076f11dae10b4fd8c21076b33a85be40bc585cc7612f3da29802e6b09e58ba5'
})
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'glproto' => :build
depends_on 'libx11' # R
depends_on 'libxext' => :build
depends_on 'python3' => :build
def self.build
system "meson setup #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure --no-pager builddir'
system 'samu -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
end
end