mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* 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)
40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Openvr < Package
|
|
description 'OpenVR is an API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the hardware they are targeting.'
|
|
homepage 'https://github.com/ValveSoftware/openvr'
|
|
version '1.12.5'
|
|
license 'BSD-3'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/ValveSoftware/openvr/archive/v1.12.5.tar.gz'
|
|
source_sha256 'f3cdbaa946688553638e6d65978f156311c9b08825316198d925f5eade6cfeb7'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: 'a76d1856f054658c6e2d6bc1eb32ee15331e7d2a06c136341d33262b1bce0930',
|
|
armv7l: 'a76d1856f054658c6e2d6bc1eb32ee15331e7d2a06c136341d33262b1bce0930',
|
|
i686: '91d3f788580791cdb59522621f37227b69974fad3a2ad52c72b2f956a36f06de',
|
|
x86_64: '5cdd33423050168ac1704e498aa52fad652ca71c1060de4b7b8243b56807896f'
|
|
})
|
|
|
|
def self.build
|
|
Dir.mkdir 'build'
|
|
Dir.chdir 'build' do
|
|
system "cmake .. -DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED=ON"
|
|
system 'make'
|
|
end
|
|
end
|
|
|
|
def self.install
|
|
Dir.chdir 'build' do
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
case ARCH
|
|
when 'x86_64'
|
|
Dir.chdir CREW_DEST_PREFIX do
|
|
FileUtils.mv 'lib/', 'lib64'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|