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)
32 lines
961 B
Ruby
32 lines
961 B
Ruby
require 'package'
|
|
|
|
class Libgme < Package
|
|
description 'Blargg\'s video game music file emulation/playback library.'
|
|
homepage 'https://bitbucket.org/mpyne/game-music-emu/'
|
|
version '0.6.3'
|
|
compatibility 'all'
|
|
license 'LGPL-2.1'
|
|
source_url 'https://bitbucket.org/mpyne/game-music-emu.git'
|
|
git_hashtag version
|
|
binary_compression 'tpxz'
|
|
|
|
binary_sha256({
|
|
aarch64: '3dd506152d59a392b3e0fd91b568acca67c95178f49b7781c05f9888ade788c8',
|
|
armv7l: '3dd506152d59a392b3e0fd91b568acca67c95178f49b7781c05f9888ade788c8',
|
|
i686: '8d6bdc67ece71fec32b470d57b37507ef55edcbe6807ffa70eff4db1ac3db94e',
|
|
x86_64: 'f87558d76fa56792e156c87cb9db5621f9b2a7ca8cac2f6d9c549761601c79bf'
|
|
})
|
|
|
|
def self.build
|
|
Dir.mkdir 'builddir'
|
|
Dir.chdir 'builddir' do
|
|
system "cmake -G Ninja #{CREW_CMAKE_OPTIONS} .."
|
|
end
|
|
system 'samu -C builddir'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
|
|
end
|
|
end
|