Commit 36391262 authored by Terra Branford's avatar Terra Branford Committed by Ed Reel

Terminal fun! (cowsay, fortune, sl) (#2791)

* Cowsay!

Cows, because why the hell not.

* Fortune!

* Fortunes for fortune!

* Lolcats!!!1!11!!

~meow~

* TRAINS

I really hope nobody's trying to `crew install ls`.

* Delete lolcat.rb

They can just use gem to install this.

* MOO

Homepage and prefix

* fortune uwu

change to use `sed` and `install`

* steam locomotive lol

switch to `sed` and `install`
parent 44f7ff73
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'
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
end
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'
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/"
end
end
require 'package'
class Fortunes < Package
description 'Over 15000 cookies for the fortune program.'
homepage 'https://packages.debian.org/sid/fortunes'
version '1.99.1'
source_url 'http://cdn-fastly.deb.debian.org/debian/pool/main/f/fortune-mod/fortune-mod_1.99.1.orig.tar.gz'
source_sha256 'fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace'
def self.install
system "mkdir -pv #{CREW_DEST_PREFIX}/share/games/fortunes"
system "mv datfiles/* #{CREW_DEST_PREFIX}/share/games/fortunes/"
end
end
require 'package'
class Sl < Package
description 'Steam Locomotive runs across your terminal when you type "sl" as you meant to type "ls".'
homepage 'https://github.com/mtoyoda/sl'
version '5.02'
source_url 'https://github.com/mtoyoda/sl/archive/5.02.tar.gz'
source_sha256 '1e5996757f879c81f202a18ad8e982195cf51c41727d3fea4af01fdcbbb5563a'
def self.build
system "sed -i 's,curses.h,#{CREW_PREFIX}/include/ncurses/curses.h,' sl.c"
system "make"
end
def self.install
system "install -Dm755 sl #{CREW_DEST_PREFIX}/bin/"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment