Files
chromebrew/packages/libxshmfence.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
1.1 KiB
Ruby

require 'package'
class Libxshmfence < Package
description 'A library that exposes a event API on top of Linux futexes'
homepage 'http://t2sde.org/packages/libxshmfence.html'
version '1.3.1'
license 'custom'
compatibility 'all'
source_url 'https://xorg.freedesktop.org/releases/individual/lib/libxshmfence-1.3.1.tar.xz'
source_sha256 '1129f95147f7bfe6052988a087f1b7cb7122283d2c47a7dbf7135ce0df69b4f8'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '80960ac0229518c53314b7da0647329860ca1f3369076624e866267a555bf178',
armv7l: '80960ac0229518c53314b7da0647329860ca1f3369076624e866267a555bf178',
i686: '80a7cd36137b0ba04e1775277667abd21ae43bc1415a5e53d5ebaa211ab78bcd',
x86_64: 'cab374aabaa29a0e9723ec3242efcdee5b196cec9398056977fdc813fcc3bb9b'
})
depends_on 'glibc' # R
depends_on 'xorg_proto' => :build
def self.build
system '[ -x configure ] || NOCONFIGURE=1 ./autogen.sh'
system "./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end