mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* 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>
35 lines
1.5 KiB
Ruby
35 lines
1.5 KiB
Ruby
require 'package'
|
|
|
|
class Libpaper < Package
|
|
description 'Library for handling paper characteristics'
|
|
homepage 'https://packages.debian.org/unstable/source/libpaper'
|
|
version '1.1.28'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url 'https://httpredir.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.28.tar.gz'
|
|
source_sha256 'c8bb946ec93d3c2c72bbb1d7257e90172a22a44a07a07fb6b802a5bb2c95fddc'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpaper/1.1.28_armv7l/libpaper-1.1.28-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpaper/1.1.28_armv7l/libpaper-1.1.28-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpaper/1.1.28_i686/libpaper-1.1.28-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/libpaper/1.1.28_x86_64/libpaper-1.1.28-chromeos-x86_64.tar.xz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '472aad9c97d57161047736b996d1d1ae3f8baab235ce5f53fc176c74df2edb14',
|
|
armv7l: '472aad9c97d57161047736b996d1d1ae3f8baab235ce5f53fc176c74df2edb14',
|
|
i686: '646d18362de3bcbba53b7f50b49d8d96760083eea17dd1a59fb2de1bc3a84b88',
|
|
x86_64: 'de7927b668b75642bdcfa82b06056af21cb11b9c710453457ecafec690e2880b'
|
|
})
|
|
|
|
def self.build
|
|
system 'autoreconf -fvi'
|
|
system "./configure #{CREW_OPTIONS}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system "make install DESTDIR=#{CREW_DEST_DIR}"
|
|
end
|
|
end
|