mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
25 lines
808 B
Ruby
25 lines
808 B
Ruby
require 'package'
|
|
|
|
class Cowsay < Package
|
|
description 'cowsay is a program that generates ASCII pictures of a cow with a message.'
|
|
homepage 'https://github.com/tnalpgge/rank-amateur-cowsay/'
|
|
version '3.04'
|
|
license 'GPL-3'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/tnalpgge/rank-amateur-cowsay/archive/cowsay-3.04.tar.gz'
|
|
source_sha256 'd8b871332cfc1f0b6c16832ecca413ca0ac14d58626491a6733829e3d655878b'
|
|
|
|
def self.install
|
|
system "sh install.sh #{CREW_DEST_PREFIX}"
|
|
end
|
|
|
|
def self.postinstall
|
|
puts
|
|
puts "To finish the installation, execute the following:".lightblue
|
|
puts "echo '# Set COWPATH for cowsay' >> ~/.bashrc".lightblue
|
|
puts "echo 'export COWPATH=#{CREW_PREFIX}/share/cows' >> ~/.bashrc".lightblue
|
|
puts "source ~/.bashrc".lightblue
|
|
puts
|
|
end
|
|
end
|