Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
82c3443e
Commit
82c3443e
authored
Jan 22, 2021
by
satmandu
Committed by
GitHub
Jan 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gtk4 -> 4.0.2 (#4971)
* gtk4 -> 4.0.2 * add bintray links
parent
851ce69f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
42 deletions
+48
-42
packages/gtk4.rb
packages/gtk4.rb
+48
-42
No files found.
packages/gtk4.rb
View file @
82c3443e
...
@@ -3,45 +3,51 @@ require 'package'
...
@@ -3,45 +3,51 @@ require 'package'
class
Gtk4
<
Package
class
Gtk4
<
Package
description
'GTK+ is a multi-platform toolkit for creating graphical user interfaces.'
description
'GTK+ is a multi-platform toolkit for creating graphical user interfaces.'
homepage
'https://developer.gnome.org/gtk4/'
homepage
'https://developer.gnome.org/gtk4/'
version
'4.0'
version
'4.0.2'
compatibility
'aarch64,armv7l,x86_64'
compatibility
'all'
case
ARCH
source_url
'https://download.gnome.org/sources/gtk/4.0/gtk-4.0.2.tar.xz'
when
'aarch64'
,
'armv7l'
,
'x86_64'
source_sha256
'626707ac6751426ed76fed49c5b2d052dfee45757ce3827088ba87ca7f1dbc84'
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
binary_url
({
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0-chromeos-armv7l.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-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-armv7l.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0-chromeos-x86_64.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
({
binary_sha256
({
aarch64:
'f7201d1c2146a2183f6235b22697d54c87d2afc271c08a22d4e4d4511d9d173c'
,
aarch64:
'80abb64172b377862591c608196ac945bd1f9ba81e2304d180d4f1129cb310f7'
,
armv7l:
'f7201d1c2146a2183f6235b22697d54c87d2afc271c08a22d4e4d4511d9d173c'
,
armv7l:
'80abb64172b377862591c608196ac945bd1f9ba81e2304d180d4f1129cb310f7'
,
x86_64:
'64ae34d9c3db55c399b26ae37824d5a3c6023e96cf3552d0d3924c1899af1143'
,
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
def
self
.
build
ENV
[
'CFLAGS'
]
=
'-fuse-ld=lld'
system
"meson
#{
CREW_MESON_LTO_OPTIONS
}
\
ENV
[
'CXXFLAGS'
]
=
'-fuse-ld=lld'
system
"meson
#{
CREW_MESON_OPTIONS
}
\
-Dbroadway-backend=true \
-Dbroadway-backend=true \
-Ddemos=false\
-Ddemos=false\
-Dbuild-examples=false \
-Dbuild-examples=false \
...
@@ -64,16 +70,16 @@ class Gtk4 < Package
...
@@ -64,16 +70,16 @@ class Gtk4 < Package
system
"glib-compile-schemas
#{
CREW_PREFIX
}
/share/glib-2.0/schemas"
system
"glib-compile-schemas
#{
CREW_PREFIX
}
/share/glib-2.0/schemas"
# update mime database
# update mime database
system
"update-mime-database
#{
CREW_PREFIX
}
/share/mime"
system
"update-mime-database
#{
CREW_PREFIX
}
/share/mime"
puts
if
!
File
.
exists?
(
"
#{
HOME
}
/.config/gtk-4.0/settings.ini"
)
puts
"To add basic settings, execute the following:"
.
lightblue
puts
puts
"mkdir
#{
HOME
}
/.config/gtk-4.0"
.
lightblue
puts
"Adding basic gtk4 settings to ~/.config/gtk-4.0/settings.ini"
.
lightblue
puts
"cat << 'EOF' >
#{
HOME
}
/.config/gtk-4.0/settings.ini
FileUtils
.
mkdir_p
"
#{
HOME
}
/.config/gtk-4.0"
system
"cat << 'EOF' >
#{
HOME
}
/.config/gtk-4.0/settings.ini
[Settings]
[Settings]
gtk-application-prefer-dark-theme = false
gtk-icon-theme-name = Adwaita
gtk-icon-theme-name = hicolor
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome
gtk-font-name = Arimo 10
gtk-font-name = Arial 10
EOF"
EOF"
.
lightblue
end
puts
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment