Files
chromebrew/packages/libsoup2.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

48 lines
1.4 KiB
Ruby

require 'package'
class Libsoup2 < Package
description 'libsoup is an HTTP client/server library for GNOME.'
homepage 'https://wiki.gnome.org/Projects/libsoup'
version '2.74.2'
license 'LGPL-2.1'
compatibility 'all'
source_url 'https://gitlab.gnome.org/GNOME/libsoup.git'
git_hashtag version
binary_compression 'tar.zst'
binary_sha256({
aarch64: '603f80f5597fe0d7bee189cd3f6078c506f124f85be57c634f04616c06bde8f9',
armv7l: '603f80f5597fe0d7bee189cd3f6078c506f124f85be57c634f04616c06bde8f9',
i686: '4f8c4a00bdc08d0dbbcbd15075e175130ad9545910206ffd5bef22534e47df18',
x86_64: 'f5ed2100923109b22f46b8eefeffa429b4b98d1cb8a27d6fe3ac39fb3d38603c'
})
depends_on 'brotli' # R
depends_on 'glibc' # R
depends_on 'glib_networking'
depends_on 'glib' # R
depends_on 'krb5' # R
depends_on 'libevent'
depends_on 'libpsl' # R
depends_on 'libxml2' # R
# depends_on 'qt5_base' => :build
depends_on 'sqlite' # R
depends_on 'vala' => :build
depends_on 'zlibpkg' # R
def self.build
system "meson setup #{CREW_MESON_OPTIONS} \
-Dtests=false \
-Dsysprof=disabled \
-Dintrospection=enabled \
builddir"
system 'meson configure --no-pager builddir'
system "sed -i 's#-R#-Wl,-rpath=#g' builddir/build.ninja"
system 'mold -run samu -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end