mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Rename IgnoredPatterns to AllowedPatterns. * Exclude docopt.rb (not our code) from Rubocop * Disable Style/RedundantReturn * Disable Style/MutableConstant * Disable Style/NumericLiterals * Set Layout/IndentationStyle to spaces * Temporarily disable various cops. * Add Rubocop CI via Octocop * Lint tree with rubocop -A -c .rubocop.yml Co-authored-by: Satadru Pramanik <satadru@gmail.com>
46 lines
1.8 KiB
Ruby
46 lines
1.8 KiB
Ruby
require 'package'
|
|
|
|
class Geocode_glib < Package
|
|
description 'Helper library for geocoding services'
|
|
homepage 'https://gitlab.gnome.org/GNOME/geocode-glib'
|
|
version '3.26.2'
|
|
license 'LGPL-2'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/GNOME/geocode-glib/archive/3.26.2.tar.gz'
|
|
source_sha256 '589ed8cf890fb47619ad1062b7117d16104554078b837344496d603d0896ec20'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geocode_glib/3.26.2_armv7l/geocode_glib-3.26.2-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geocode_glib/3.26.2_armv7l/geocode_glib-3.26.2-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geocode_glib/3.26.2_i686/geocode_glib-3.26.2-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/geocode_glib/3.26.2_x86_64/geocode_glib-3.26.2-chromeos-x86_64.tar.xz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: 'f74ba83a0df6933228dd95b002338a8240fc2b214607aed1336ff39977ac1eb6',
|
|
armv7l: 'f74ba83a0df6933228dd95b002338a8240fc2b214607aed1336ff39977ac1eb6',
|
|
i686: '14df38272b852f20219f566d0e3af5d1d80f9f1764d2058810225c351f1372bb',
|
|
x86_64: 'e09c747ba0471e2a50205b0d107832aa3f3828425e0ffaf0bb1b67568c3b369c'
|
|
})
|
|
|
|
depends_on 'json_glib'
|
|
depends_on 'libsoup'
|
|
depends_on 'gobject_introspection' => :build
|
|
depends_on 'gtk_doc' => :build
|
|
|
|
def self.patch
|
|
system "sed -i 's/gnome/Adwaita/' icons/meson.build"
|
|
end
|
|
|
|
def self.build
|
|
system "meson #{CREW_MESON_OPTIONS} \
|
|
-Dsystemd=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
|