Commit 5cf52f4d authored by Ed Reel's avatar Ed Reel

Add pre-built binaries for atk, gtk2 and gtk3

parent 2fc130d7
......@@ -8,18 +8,29 @@ class Atk < Package
source_url 'https://download.gnome.org/sources/atk/2.36/atk-2.36.0.tar.xz'
source_sha256 'fb76247e369402be23f1f5c65d38a9639c1164d934e40f6a9cf3c9e96b652788'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/atk-2.36-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/atk-2.36-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/atk-2.36-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/atk-2.36-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '59b8ccc0c669036ac52af1ce1ae2935f003b373c8fad8ce6825ded95bc1b2a29',
armv7l: '59b8ccc0c669036ac52af1ce1ae2935f003b373c8fad8ce6825ded95bc1b2a29',
i686: 'e96cb35a8e5855e32a7ab39f7edf67f7dc19eed74c0a3a63abf4d2ffb4b3db67',
x86_64: '6e8cf2d268ac84d9cccb189167449882aa19489093dacedf6697165049d3fa58',
})
depends_on 'gobject_introspection'
depends_on 'six' => :build
def self.build
system "meson #{CREW_MESON_OPTIONS} build"
system "meson configure build"
system 'meson configure build'
system 'ninja -C build'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C build install"
end
end
......@@ -8,6 +8,18 @@ class Gtk2 < Package
source_url 'https://download.gnome.org/sources/gtk+/2.24/gtk+-2.24.33.tar.xz'
source_sha256 'ac2ac757f5942d318a311a54b0c80b5ef295f299c2a73c632f6bfb1ff49cc6da'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk2-2.24.33-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk2-2.24.33-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk2-2.24.33-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk2-2.24.33-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'b259d923928b1ff1ecf0eaaa91bbb9ff201b66b5cc7418d83a19a39b975c8554',
armv7l: 'b259d923928b1ff1ecf0eaaa91bbb9ff201b66b5cc7418d83a19a39b975c8554',
i686: '680a403e558776af399bff35d9febe5d1c05b95b3905f936fe2b8e170d6d037d',
x86_64: '10ec206de2a847f749ad271e97b473c8159395fc64751fe3b26058ca1ef6e75e',
})
depends_on 'gtk_doc'
depends_on 'atk'
......@@ -18,12 +30,11 @@ class Gtk2 < Package
depends_on 'six' => :build
def self.build
system "./configure #{CREW_OPTIONS} \
--with-gdktarget=x11"
system "make"
system "./configure #{CREW_OPTIONS} --with-gdktarget=x11"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
......@@ -8,7 +8,18 @@ class Gtk3 < Package
source_url 'https://download.gnome.org/sources/gtk+/3.24/gtk+-3.24.24.tar.xz'
source_sha256 'cc9d4367c55b724832f6b09ab85481738ea456871f0381768a6a99335a98378a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.24.24-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.24.24-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.24.24-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk3-3.24.24-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'e210c917b0effc58d588dacda8f8db7897ce9699323001a21f732d053ef5c285',
armv7l: 'e210c917b0effc58d588dacda8f8db7897ce9699323001a21f732d053ef5c285',
i686: 'e71c8b765f76138543aca2cdbbc57904da3dbe6360a51f586b5b6dc6f7d2b599',
x86_64: '7ecd9650e74bce60e27df07be49b89aee56da89795b63ac3f894aac8542ec69a',
})
depends_on 'cups'
depends_on 'at_spi2_atk'
......@@ -30,10 +41,10 @@ class Gtk3 < Package
def self.build
# The lld linker allows linking against system ChromeOS libs.
ENV['CFLAGS'] = "-fuse-ld=lld"
ENV['CXXFLAGS'] = "-fuse-ld=lld"
ENV['CFLAGS'] = '-fuse-ld=lld'
ENV['CXXFLAGS'] = '-fuse-ld=lld'
system "meson #{CREW_MESON_OPTIONS} -Dbroadway_backend=true -Dgtk_doc=false -Ddemos=false -Dexamples=false build"
system "meson configure build"
system 'meson configure build'
system 'ninja -C build'
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