mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-06 22:24:12 -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>
23 lines
637 B
Ruby
23 lines
637 B
Ruby
require 'package'
|
|
|
|
class Fortune < Package
|
|
description 'Fortune is a small game that is meant to lighten up your life. It can be used to display a random entry from a cookie file.'
|
|
homepage 'https://www.fefe.de/fortune/'
|
|
version '1.2'
|
|
license 'BSD-3'
|
|
compatibility 'all'
|
|
source_url 'http://dl.fefe.de/fortune-1.2.tar.bz2'
|
|
source_sha256 'cbb246a500366db39ce035632eb4954e09f1e03b28f2c4688864bfa8661b236a'
|
|
|
|
depends_on 'fortunes'
|
|
|
|
def self.build
|
|
system "sed -i 's,/usr,#{CREW_PREFIX},' fortune.c"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system "install -Dm755 fortune #{CREW_DEST_PREFIX}/bin/fortune"
|
|
end
|
|
end
|