mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
* add compiling constants * fix version and quoting * lib/const.rb: add CREW_MESON_FNO_LTO_OPTIONS * lib/const.rb: fix CREW_COMMON_OPTIONS * crew: add new consts to crew const output * bin/crew: alphabetize consts Co-authored-by: Ed Reel <edreel@gmail.com>
54 lines
1.7 KiB
Ruby
54 lines
1.7 KiB
Ruby
require 'package'
|
|
|
|
class Mutter < Package
|
|
description 'A window manager for GNOME'
|
|
homepage 'https://wiki.gnome.org/Projects/Mutter'
|
|
version '40.0'
|
|
license 'GPL-2+'
|
|
compatibility 'x86_64 aarch64 armv7l'
|
|
source_url "https://gitlab.gnome.org/GNOME/mutter/-/archive/#{version}/mutter-#{version}.tar.bz2"
|
|
source_sha256 '3f56768113d536f5842ea6db14d1d9c48f8c87cd240891f9b9305116e425771e'
|
|
|
|
binary_url({
|
|
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mutter-40.0-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mutter-40.0-chromeos-armv7l.tar.xz',
|
|
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mutter-40.0-chromeos-x86_64.tar.xz',
|
|
})
|
|
binary_sha256({
|
|
aarch64: 'fafa169c22a7aa7595edf43a4c8dc7306210163e6759130f81d338120b92b8bd',
|
|
armv7l: 'fafa169c22a7aa7595edf43a4c8dc7306210163e6759130f81d338120b92b8bd',
|
|
x86_64: '1b28b4cd4f91f342bc6bde187f48f58954b7259f0377e679742c9c821b60f668',
|
|
})
|
|
|
|
depends_on 'dconf'
|
|
depends_on 'gnome_settings_daemon'
|
|
depends_on 'gsettings_desktop_schemas'
|
|
depends_on 'gobject_introspection' => :build
|
|
depends_on 'xorg_server' => :build
|
|
depends_on 'libinput'
|
|
depends_on 'libwacom'
|
|
depends_on 'startup_notification'
|
|
depends_on 'pipewire'
|
|
depends_on 'libcanberra'
|
|
depends_on 'ccache' => :build
|
|
|
|
def self.build
|
|
system "meson #{CREW_MESON_OPTIONS} \
|
|
-Dtests=false \
|
|
-Dprofiler=false \
|
|
-Dopengl=true \
|
|
-Dglx=true \
|
|
-Dwayland=true \
|
|
-Dnative_backend=true \
|
|
-Dcogl_tests=true \
|
|
-Dxwayland_path=#{CREW_PREFIX}/bin/Xwayland \
|
|
builddir"
|
|
system 'meson configure builddir'
|
|
system 'ninja -C builddir'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
|
|
end
|
|
end
|