Files
chromebrew/packages/geocode_glib.rb
Maximilian Downey Twiss eb14c41653 Remove compatibility from packages with incompatible dependencies (#9458)
* Remove i686 compatibility from packages with dependencies incompatible with i686

* Remove armv7l compatibility from packages with dependencies incompatible with arvm7l

* Abort builds/installs if the package has incompatible dependencies
2024-03-11 13:09:12 -04:00

43 lines
1.2 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.4'
license 'LGPL-2'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/GNOME/geocode-glib/archive/3.26.4.tar.gz'
source_sha256 'cd4464f74add58584f04e6a7f16347f07caf271509e0b7ef067a4170b74518c9'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'b4c19b4b56d86ca0ce4d5a98f0b87f09ba883e5363e271277c0419a72ece6fa3',
armv7l: 'b4c19b4b56d86ca0ce4d5a98f0b87f09ba883e5363e271277c0419a72ece6fa3',
x86_64: '7149daebea7923591edbabf59b14e328421880aaac8c8147ba4ac0c0838b5d19'
})
depends_on 'json_glib'
depends_on 'libsoup'
depends_on 'gobject_introspection' => :build
depends_on 'gtk_doc' => :build
depends_on 'py3_pygments' => :build
depends_on 'glib' # R
depends_on 'glibc' # R
depends_on 'libsoup2' # R
def self.patch
system "sed -i 's/gnome/Adwaita/' icons/meson.build"
end
def self.build
system "meson setup #{CREW_MESON_OPTIONS} \
builddir"
system 'meson configure --no-pager builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end