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)
This commit is contained in:
Maximilian Downey Twiss
2024-01-26 03:03:31 +11:00
committed by GitHub
parent 68d15ff629
commit f6dc1d8d4e
1797 changed files with 1799 additions and 10419 deletions

View File

@@ -11,13 +11,8 @@ class Dtc < Package
compatibility 'all'
source_url 'https://www.kernel.org/pub/software/utils/dtc/dtc-1.6.1.tar.xz'
source_sha256 '65cec529893659a49a89740bb362f507a3b94fc8cd791e76a8d6a2b6f3203473'
binary_compression 'tar.zst'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dtc/1.6.1_armv7l/dtc-1.6.1-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dtc/1.6.1_armv7l/dtc-1.6.1-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dtc/1.6.1_i686/dtc-1.6.1-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/dtc/1.6.1_x86_64/dtc-1.6.1-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: '79d681e53a8481baab0201a02c2ce28dba0eb2921b65bf5b2ade184467720b53',
armv7l: '79d681e53a8481baab0201a02c2ce28dba0eb2921b65bf5b2ade184467720b53',