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

40 lines
1.5 KiB
Ruby

require 'package'
class Libinih < Package
description 'A simple .INI file parser written in C'
homepage 'https://github.com/benhoyt/inih'
@_ver = '52'
version @_ver
license 'BSD'
compatibility 'all'
source_url "https://github.com/benhoyt/inih/archive/r#{@_ver}.tar.gz"
source_sha256 '439cff9ce9a8afc52d08772ac3e93b3cecd79c7707f871fb4534fb3a48201880'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libinih/52_armv7l/libinih-52-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libinih/52_armv7l/libinih-52-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libinih/52_i686/libinih-52-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libinih/52_x86_64/libinih-52-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '813f8831babc7ab96bc4ec618b3b702e09906c97f7d319dc24e7cb5cf9b517a9',
armv7l: '813f8831babc7ab96bc4ec618b3b702e09906c97f7d319dc24e7cb5cf9b517a9',
i686: '652b3f23a2e720dcc915894a8c335efa08b664782c667331e7fea40f41debfb6',
x86_64: '81bc105c7144a03bb7a81a5997925fa67973c62c8598730586942950d40098b4'
})
def self.build
system "meson #{CREW_MESON_OPTIONS} \
-Ddefault_library=both \
-Ddistro_install=true \
-Dwith_INIReader=true \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end