mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -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)
35 lines
1.2 KiB
Ruby
35 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Libmediainfo < Package
|
|
description 'MediaInfo is a convenient unified display of the most relevant technical and tag data for video and audio files.'
|
|
homepage 'http://mediaarea.net/en/MediaInfo'
|
|
version '23.11'
|
|
license 'BSD-2'
|
|
compatibility 'all'
|
|
source_url 'https://mediaarea.net/download/binary/libmediainfo0/23.11/MediaInfo_DLL_23.11_GNU_FromSource.tar.xz'
|
|
source_sha256 '7ffa6728840dd022af261b665dbf0c3cd8419b8001abcdc507801944bcaaa7a6'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'a897d1fc07ea2de848275dadfca354e786809c5e3d0155fed556c0eb0649956c',
|
|
armv7l: 'a897d1fc07ea2de848275dadfca354e786809c5e3d0155fed556c0eb0649956c',
|
|
i686: '981a710eff8bd7c45bdb73ba46589e875f6cfbb731274e6baae9c606054bdffa',
|
|
x86_64: 'ce74c4ff5b7d4e0957858313aadfbe9c0aadd6bb67c13b8424d10323d408a031'
|
|
})
|
|
|
|
def self.patch
|
|
# Fix /usr/bin/file: No such file or directory
|
|
system 'filefix'
|
|
end
|
|
|
|
def self.build
|
|
system "mold -run ./SO_Compile.sh #{CREW_OPTIONS}"
|
|
end
|
|
|
|
def self.install
|
|
Dir.chdir 'MediaInfoLib/Project/GNU/Library' do
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|
|
end
|