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

32 lines
971 B
Ruby

require 'package'
class Libpciaccess < Package
description 'Generic PCI access library'
homepage 'https://x.org'
version '0.17'
license 'MIT'
compatibility 'all'
source_url 'https://www.x.org/archive/individual/lib/libpciaccess-0.17.tar.xz'
source_sha256 '74283ba3c974913029e7a547496a29145b07ec51732bbb5b5c58d5025ad95b73'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '5c8d971346ea24e2f5bc14de9070e17151943953dbf7efa515b4fb6708a723a5',
armv7l: '5c8d971346ea24e2f5bc14de9070e17151943953dbf7efa515b4fb6708a723a5',
i686: '9362cd9b579036b25d29082dc007539145548a6e74db327c18bc805a25d8a875',
x86_64: 'e61aaa65adb6f1932bc538ed7bb946aec5b6502149931461dec1b9fbf7a58908'
})
depends_on 'glibc' # R
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