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>
38 lines
1.7 KiB
Ruby
38 lines
1.7 KiB
Ruby
require 'package'
|
|
|
|
class Tpp < Package
|
|
description 'tpp stands for text presentation program and is an ncurses-based presentation tool.'
|
|
homepage 'http://www.ngolde.de/tpp.html'
|
|
version '1.3.1'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url 'http://www.ngolde.de/download/tpp-1.3.1.tar.gz'
|
|
source_sha256 '68e3de94fbfb62bd91a6d635581bcf8671a306fffe615d00294d388ad91e1b5f'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/tpp/1.3.1_armv7l/tpp-1.3.1-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/tpp/1.3.1_armv7l/tpp-1.3.1-chromeos-armv7l.tar.xz',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/tpp/1.3.1_i686/tpp-1.3.1-chromeos-i686.tar.xz',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/tpp/1.3.1_x86_64/tpp-1.3.1-chromeos-x86_64.tar.xz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: 'e9c8e83cdd2ed2571e2959b47b33b22f621eb78fd3ef10942c6b30c50a22d823',
|
|
armv7l: 'e9c8e83cdd2ed2571e2959b47b33b22f621eb78fd3ef10942c6b30c50a22d823',
|
|
i686: 'ace7af2826c5f61c639ca903e2c5617f6794ca1f2ae8aa0fc4b8b76f0f780bdd',
|
|
x86_64: '5840c967253bd4eae0e157f7af292d5f10eddc2ca2e8f2fc1fada4d0bb56a14a'
|
|
})
|
|
|
|
def self.build
|
|
installed = `gem list | grep ^ncurses-ruby`
|
|
system 'gem install ncurses-ruby' unless installed.to_s != ''
|
|
system "sed -i 's,prefix=/usr/local,prefix=#{CREW_DEST_PREFIX},' Makefile"
|
|
end
|
|
|
|
def self.install
|
|
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
|
|
system "mkdir -p #{CREW_DEST_PREFIX}/share/man/man1"
|
|
system 'make install'
|
|
system "gzip -9 #{CREW_DEST_PREFIX}/share/man/man1/tpp.1"
|
|
end
|
|
end
|