mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
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`
This commit is contained in:
13
packages/cowsay.rb
Normal file
13
packages/cowsay.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
20
packages/fortune.rb
Normal file
20
packages/fortune.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
14
packages/fortunes.rb
Normal file
14
packages/fortunes.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
18
packages/sl.rb
Normal file
18
packages/sl.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user