Files
chromebrew/packages/ffcall.rb
Maximilian Downey Twiss de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00

34 lines
1.5 KiB
Ruby

require 'package'
class Ffcall < Package
description 'GNU libffcall is a library which can be used to build foreign function call interfaces in embedded interpreters.'
homepage 'https://www.gnu.org/software/libffcall/'
version '2.0'
license 'GPL-3+'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/libffcall/libffcall-2.0.tar.gz'
source_sha256 '41aad2b449d90a5308e72267829db006dc9f9cc8736807082e1f2daef680196c'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ffcall/2.0_armv7l/ffcall-2.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ffcall/2.0_armv7l/ffcall-2.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ffcall/2.0_i686/ffcall-2.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ffcall/2.0_x86_64/ffcall-2.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '30ebb220d932b87a34428d3fa6dae866ac5dc417007d223ec7d87cab96b706bf',
armv7l: '30ebb220d932b87a34428d3fa6dae866ac5dc417007d223ec7d87cab96b706bf',
i686: 'a48db57667d8867fa0566372c4177711fd6532199b416ac6874e4a82d1310ad0',
x86_64: '6f0395b9c855cc827bdc35ca351a4dc8367c42a601972b6b6986f7d8cd6277a5'
})
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} CFLAGS=\" -fPIC\""
system 'make', '-j1' # doesn't support parallel builds
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end