Files
chromebrew/packages/asmc.rb
supechicken 038e0c8828 New package: Pkg_7_zip (#6749)
* Add files via upload

* Update 7_zip.rb

* Update 7_zip.rb

* Make `p7zip` a dummy package points to `7_zip`

* Remove conflict check

* Update 7_zip.rb

* fixup pkg names

* asmc binaries

* fix armv7l build and add binaries

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-03-30 11:38:19 -05:00

31 lines
1.5 KiB
Ruby

require 'package'
class Asmc < Package
description 'Asmc Macro Assembler'
homepage 'https://github.com/nidud/asmc'
license 'GPL-2.0'
@_commit = '3663995a73c333742c6c3bd022ba7ba33e4f5155'
version "2.33.27-#{@_commit[0..7]}"
compatibility 'all'
source_url "https://github.com/nidud/asmc/raw/#{@_commit}/bin/asmc"
source_sha256 '90d227fa76ceba80da6aa63e90b945577daf7c13d93c3a08b76b9d488875d4a0'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/asmc/2.33.27-3663995_armv7l/asmc-2.33.27-3663995-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/asmc/2.33.27-3663995_armv7l/asmc-2.33.27-3663995-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/asmc/2.33.27-3663995_i686/asmc-2.33.27-3663995-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/asmc/2.33.27-3663995_x86_64/asmc-2.33.27-3663995-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'dda205aeddb6e8c0aa09f12bdb3e5c6908351a3d2528ceb0286e518efb025c73',
armv7l: 'dda205aeddb6e8c0aa09f12bdb3e5c6908351a3d2528ceb0286e518efb025c73',
i686: 'a05c421ca0ec71712bb00ea1d1e6d06882b723a073167fd67162c3a92a6445f2',
x86_64: '56057ed91a1edb20cb0c6c6a91022f84a5871d345cde35f066b73a20a70b2ee0'
})
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'asmc', "#{CREW_DEST_PREFIX}/bin/asmc", mode: 0o755
end
end