Commit 82c3443e authored by satmandu's avatar satmandu Committed by GitHub

gtk4 -> 4.0.2 (#4971)

* gtk4 -> 4.0.2

* add bintray links
parent 851ce69f
......@@ -3,45 +3,51 @@ require 'package'
class Gtk4 < Package
description 'GTK+ is a multi-platform toolkit for creating graphical user interfaces.'
homepage 'https://developer.gnome.org/gtk4/'
version '4.0'
compatibility 'aarch64,armv7l,x86_64'
case ARCH
when 'aarch64', 'armv7l', 'x86_64'
source_url 'https://download.gnome.org/sources/gtk/4.0/gtk-4.0.0.tar.xz'
source_sha256 'd46cf5b127ea27dd9e5d2ff6ed500cb4067eeb2cb1cd2c313ccde8013b0b9bf9'
depends_on 'cups'
depends_on 'at_spi2_atk'
depends_on 'gnome_icon_theme'
depends_on 'gobject_introspection'
depends_on 'gdk_pixbuf'
depends_on 'graphene'
depends_on 'hicolor_icon_theme'
depends_on 'iso_codes'
depends_on 'json_glib'
depends_on 'libepoxy'
depends_on 'libxkbcommon'
depends_on 'llvm' => :build
depends_on 'shared_mime_info'
depends_on 'six' => :build
depends_on 'xdg_base'
depends_on 'pygments' => :build
end
version '4.0.2'
compatibility 'all'
source_url 'https://download.gnome.org/sources/gtk/4.0/gtk-4.0.2.tar.xz'
source_sha256 '626707ac6751426ed76fed49c5b2d052dfee45757ce3827088ba87ca7f1dbc84'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'f7201d1c2146a2183f6235b22697d54c87d2afc271c08a22d4e4d4511d9d173c',
armv7l: 'f7201d1c2146a2183f6235b22697d54c87d2afc271c08a22d4e4d4511d9d173c',
x86_64: '64ae34d9c3db55c399b26ae37824d5a3c6023e96cf3552d0d3924c1899af1143',
aarch64: '80abb64172b377862591c608196ac945bd1f9ba81e2304d180d4f1129cb310f7',
armv7l: '80abb64172b377862591c608196ac945bd1f9ba81e2304d180d4f1129cb310f7',
i686: 'cdbb821b6bf8d6965022b0f8e8b52c750db13c40134a1704cf27bfcd753087cb',
x86_64: '496f28133a2541843b4cdd08db8a941c7513a19ba9621212e635bf3ec6bc0284',
})
depends_on 'cups'
depends_on 'at_spi2_atk'
depends_on 'gnome_icon_theme'
depends_on 'gobject_introspection'
depends_on 'gdk_pixbuf'
depends_on 'graphene'
depends_on 'hicolor_icon_theme'
depends_on 'iso_codes'
depends_on 'json_glib'
depends_on 'libepoxy'
depends_on 'libxkbcommon'
depends_on 'llvm' => :build
depends_on 'shared_mime_info'
depends_on 'six' => :build
depends_on 'xdg_base'
depends_on 'pygments' => :build
def self.patch
case ARCH
when 'i686'
system "sed -i 's,#include <fcntl.h>,#include <linux/fcntl.h>,' gdk/wayland/cursor/os-compatibility.c"
system "sed -i 's/#define HAVE_MEMFD_CREATE/#define HAVE_MEMFD_CREATE_NO/' gdk/wayland/cursor/os-compatibility.c"
end
end
def self.build
ENV['CFLAGS'] = '-fuse-ld=lld'
ENV['CXXFLAGS'] = '-fuse-ld=lld'
system "meson #{CREW_MESON_OPTIONS} \
system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dbroadway-backend=true \
-Ddemos=false\
-Dbuild-examples=false \
......@@ -64,16 +70,16 @@ class Gtk4 < Package
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
# update mime database
system "update-mime-database #{CREW_PREFIX}/share/mime"
puts
puts "To add basic settings, execute the following:".lightblue
puts "mkdir #{HOME}/.config/gtk-4.0".lightblue
puts "cat << 'EOF' > #{HOME}/.config/gtk-4.0/settings.ini
if !File.exists?("#{HOME}/.config/gtk-4.0/settings.ini")
puts
puts "Adding basic gtk4 settings to ~/.config/gtk-4.0/settings.ini".lightblue
FileUtils.mkdir_p "#{HOME}/.config/gtk-4.0"
system "cat << 'EOF' > #{HOME}/.config/gtk-4.0/settings.ini
[Settings]
gtk-application-prefer-dark-theme = false
gtk-icon-theme-name = hicolor
gtk-fallback-icon-theme = gnome
gtk-font-name = Arial 10
EOF".lightblue
puts
gtk-icon-theme-name = Adwaita
gtk-theme-name = Adwaita
gtk-font-name = Arimo 10
EOF"
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment