Files
chromebrew/packages/libcloudproviders.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

40 lines
1.3 KiB
Ruby

# Adapted from Arch Linux libcloudproviders PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/libcloudproviders/trunk/PKGBUILD
require 'package'
class Libcloudproviders < Package
description 'DBus API that allows cloud storage sync clients to expose their services'
homepage 'https://gitlab.gnome.org/World/libcloudproviders'
version '0.3.1'
license 'LGPL3'
compatibility 'all'
source_url 'https://gitlab.gnome.org/World/libcloudproviders.git'
git_hashtag version
binary_compression 'tar.zst'
binary_sha256({
aarch64: '66bdf01e15334ebf3116560bfe420c135c88985c9aec1b9681e723a85f1d7643',
armv7l: '66bdf01e15334ebf3116560bfe420c135c88985c9aec1b9681e723a85f1d7643',
i686: 'e82c90e2d4b30c72c236ac229f7897a5fffc7b0f642928645b6137517d46d414',
x86_64: 'c09ca53402d15711f03131517aadeb610bac7ae3a4269ec30ac9e9719ecf5fae'
})
depends_on 'gobject_introspection' => :build
depends_on 'vala' => :build
depends_on 'gtk_doc' => :build
depends_on 'glib' # R
depends_on 'glibc' # R
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