Commit af26aae2 authored by lovedheart's avatar lovedheart Committed by Ed Reel

Update gtk3.rb (#2133)

* Update gtk3.rb

* Update gtk3.rb

* Update gtk3.rb

Fix dependency for runtime.

* Update gtk3.rb

* [gtk3] Small changes and pre-built binary
parent 9c2db749
......@@ -3,25 +3,24 @@ require 'package'
class Gtk3 < Package
description 'Gtk3 is a cross-platform widget toolkit for creating graphical user interfaces.'
homepage 'https://developer.gnome.org/gtk3/3.0/'
version '3.22.29'
version '3.22.29-0'
source_url 'https://ftp.gnome.org/pub/gnome/sources/gtk+/3.22/gtk+-3.22.29.tar.xz'
source_sha256 'a07d64b939fcc034a066b7723fdf9b24e92c9cfb6a8497593f3471fe56fbbbf8'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.22.29-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.22.29-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.22.29-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.22.29-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.22.29-0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.22.29-0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.22.29-0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.22.29-0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '24f0c109b0d19262a38b8a9e361b2a6e6a17516d21fee207ae7cbf957c85bee5',
armv7l: '24f0c109b0d19262a38b8a9e361b2a6e6a17516d21fee207ae7cbf957c85bee5',
i686: 'f8569ad221aa63560fa9bfb1db99ec399156053a6e9bcf0efdcedcb6912be0a7',
x86_64: '449303430fc73dfa177ef7880a02b3972cc65efbbda1256c598710330e9a6bf7',
aarch64: 'bdf7541925c1708e2517346b2138cccd81fabd6a73e3d2eb5d2bc27817b9d90e',
armv7l: 'bdf7541925c1708e2517346b2138cccd81fabd6a73e3d2eb5d2bc27817b9d90e',
i686: '7cae5db165ff66b908163272e0aac0f361238e0eaed6f04c91ab3f0ebbee2b7b',
x86_64: 'f55a4969e7f0ddbeed5586455864d3b83345c1f6b0ef4c2b6fcb000046d56e9d',
})
depends_on 'xorg_lib'
depends_on 'gdk_pixbuf'
depends_on 'libepoxy'
depends_on 'graphene'
......@@ -36,16 +35,16 @@ class Gtk3 < Package
"--enable-x11-backend",
"--enable-wayland-backend"
system "make"
end
def self.install
system "pip install six" # for installation process
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
# generate schemas
system "mkdir -p #{CREW_DEST_PREFIX}/share/glib-2.0/schemas"
system "glib-compile-schemas #{CREW_DEST_PREFIX}/share/glib-2.0/schemas"
system "pip uninstall --yes six"
end
def self.postinstall
system "glib-compile-schemas #{CREW_DEST_PREFIX}/share/glib-2.0/schemas" # generate gschemas.compiled
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