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

36 lines
1.5 KiB
Ruby

require 'package'
class Libspectre < Package
description 'Small library for rendering Postscript documents'
homepage 'https://www.freedesktop.org/wiki/Software/libspectre/'
version '0.2.9'
license 'GPL-2'
compatibility 'all'
source_url 'https://libspectre.freedesktop.org/releases/libspectre-0.2.9.tar.gz'
source_sha256 '49ae9c52b5af81b405455c19fe24089d701761da2c45d22164a99576ceedfbed'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libspectre/0.2.9_armv7l/libspectre-0.2.9-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libspectre/0.2.9_armv7l/libspectre-0.2.9-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libspectre/0.2.9_i686/libspectre-0.2.9-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libspectre/0.2.9_x86_64/libspectre-0.2.9-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '4b475b4e20a95c3ae4a2b9c515b63b865395d3885291f8339adc25315a47c09e',
armv7l: '4b475b4e20a95c3ae4a2b9c515b63b865395d3885291f8339adc25315a47c09e',
i686: '1d329f12e3b38090cb438e550967caf3d974ca7544235746b436b8ad5b7bb443',
x86_64: '27903948a5042bb286bd1654d979376b2318980629bc44b94fb89b77a36dfec3'
})
depends_on 'ghostscript' # = libgs
def self.build
system "./configure #{CREW_OPTIONS} --disable-static"
system 'make'
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
end
end