Files
chromebrew/packages/libpciaccess.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

32 lines
987 B
Ruby

require 'package'
class Libpciaccess < Package
description 'Generic PCI access library'
homepage 'https://x.org/wiki/'
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_CONFIGURE_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end