Files
chromebrew/packages/glib.rb
Satadru Pramanik a03897b29b glib -> 2.69.3 (#6146)
* glib -> 2.69.3

* Add i686 binary

Co-authored-by: Ed Reel <edreel@gmail.com>
2021-09-10 02:41:05 -05:00

46 lines
1.7 KiB
Ruby

require 'package'
class Glib < Package
description 'GLib provides the core application building blocks for libraries and applications written in C.'
homepage 'https://developer.gnome.org/glib'
@_ver = '2.69.3'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
license 'LGPL-2.1'
compatibility 'all'
source_url 'https://gitlab.gnome.org/GNOME/glib.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.69.3_armv7l/glib-2.69.3-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.69.3_armv7l/glib-2.69.3-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.69.3_i686/glib-2.69.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/glib/2.69.3_x86_64/glib-2.69.3-chromeos-x86_64.tpxz'
})
binary_sha256({
aarch64: '0a28298a4b7c7628d227a627b880b04f4cb1eb7eddc1b9bb470394a883cb7e91',
armv7l: '0a28298a4b7c7628d227a627b880b04f4cb1eb7eddc1b9bb470394a883cb7e91',
i686: 'f4e2e279a0929b56cfe527d5e48abb5d2722e8d8ac923f4937e239f598a2dc5e',
x86_64: '484b56feaa32030249f8b5a66728b15b84190b092539012f102d53f0e011a0c6'
})
depends_on 'shared_mime_info' # L
depends_on 'py3_six' => :build
depends_on 'py3_pygments' => :build
depends_on 'util_linux' # R
def self.build
system "meson #{CREW_MESON_OPTIONS} \
-Dselinux=disabled \
-Dsysprof=disabled \
-Dman=false \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end