mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
36 lines
958 B
Ruby
36 lines
958 B
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'
|
|
version '2.67.0'
|
|
compatibility 'all'
|
|
source_url 'https://download.gnome.org/sources/glib/2.67/glib-2.67.0.tar.xz'
|
|
source_sha256 '0b15e57ab6c2bb90ced4e24a1b0d8d6e9a13af8a70266751aa3a45baffeed7c1'
|
|
|
|
depends_on 'pcre2'
|
|
depends_on 'libffi'
|
|
depends_on 'gettext'
|
|
depends_on 'shared_mime_info'
|
|
depends_on 'util_linux'
|
|
depends_on 'six'
|
|
|
|
ENV['CFLAGS'] = "-fno-stack-protector"
|
|
def self.build
|
|
system "meson #{CREW_MESON_OPTIONS} \
|
|
-Dselinux=disabled \
|
|
-Dsysprof=enabled \
|
|
-Dman=false \
|
|
-Dgtk_doc=false \
|
|
-Diconv=external \
|
|
-Dinternal_pcre=true \
|
|
build"
|
|
system "meson configure build"
|
|
system "ninja -C build"
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} ninja -C build install"
|
|
end
|
|
end
|