Files
chromebrew/packages/gnome_nibbles.rb
Maximilian Downey Twiss de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00

35 lines
1.1 KiB
Ruby

require 'package'
class Gnome_nibbles < Package
description 'snake game, up to four players'
homepage 'https://wiki.gnome.org/Apps/Nibbles'
@_commit = '62964e9256fcac616109af874dbb2bd8342a9853'
version "3.38.2+git+#{@_commit[0..8]}"
license 'GPL-3+ and CC-BY-SA-3.0'
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/gnome-nibbles/-/archive/#{@_commit}/gnome-nibbles-#{@_commit}.tar.gz"
source_sha256 'ebf93903d36ae939f9ae56f47bc0dea151a60dfe2c63962af84c517ef1d7aba4'
depends_on 'clutter_gtk'
depends_on 'gsound'
depends_on 'librsvg'
depends_on 'libgnome_games_support'
depends_on 'wayland'
def self.build
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
def self.postinstall
system 'update-mime-database', "#{CREW_PREFIX}/share/mime"
system 'gdk-pixbuf-query-loaders', '--update-cache'
system 'glib-compile-schemas', "#{CREW_PREFIX}/share/glib-2.0/schemas"
end
end