Files
chromebrew/packages/cowsay.rb
2021-03-18 21:22:12 -04:00

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