Files
chromebrew/packages/gsound.rb
Maximilian Downey Twiss eb14c41653 Remove compatibility from packages with incompatible dependencies (#9458)
* Remove i686 compatibility from packages with dependencies incompatible with i686

* Remove armv7l compatibility from packages with dependencies incompatible with arvm7l

* Abort builds/installs if the package has incompatible dependencies
2024-03-11 13:09:12 -04:00

36 lines
1.1 KiB
Ruby

require 'package'
class Gsound < Package
description 'GSound is a small library for playing system sounds.'
homepage 'https://wiki.gnome.org/Projects/GSound'
version '1.0.2'
license 'LGPL-2.1+'
compatibility 'x86_64 aarch64 armv7l'
source_url "https://download.gnome.org/sources/gsound/#{version.rpartition('.')[0]}/gsound-#{version}.tar.xz"
source_sha256 'bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '01781a6b9044780e7e4401e16fa6ba3a3491cff618e640828445937dcce90155',
armv7l: '01781a6b9044780e7e4401e16fa6ba3a3491cff618e640828445937dcce90155',
x86_64: '65a98713abd0ad892ba0f65a823d51c5aa1b9fd14751d998211f762724a2c444'
})
depends_on 'gobject_introspection'
depends_on 'libcanberra'
def self.build
system './autogen.sh' if File.exist?('autogen.sh')
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
def self.check
system 'make check'
end
end