From 99ef2e5892b30e491eea725ec654191264300cd3 Mon Sep 17 00:00:00 2001 From: Crestwave <35413013+Crestwave@users.noreply.github.com> Date: Tue, 16 Oct 2018 02:20:35 +0000 Subject: [PATCH] cowsay: new recipe (#3219) --- games-misc/cowsay/cowsay-3.03.recipe | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 games-misc/cowsay/cowsay-3.03.recipe diff --git a/games-misc/cowsay/cowsay-3.03.recipe b/games-misc/cowsay/cowsay-3.03.recipe new file mode 100644 index 000000000..fe2b33d6f --- /dev/null +++ b/games-misc/cowsay/cowsay-3.03.recipe @@ -0,0 +1,43 @@ +SUMMARY="Configurable speaking/thinking cow (and a bit more)" +DESCRIPTION="Configurable talking ASCII cow and other characters. \ +Invoking it as cowthink will make it think instead of speak." +HOMEPAGE="https://github.com/tnalpgge/rank-amateur-cowsay" +COPYRIGHT="1999-2000 Tony Monroe" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="$HOMEPAGE/archive/$portName-$portVersion.tar.gz" +CHECKSUM_SHA256="9a32cba0b561719e1302398857124fdf4dd21a7623c017eaadbf31277f9274af" +SOURCE_DIR="rank-amateur-cowsay-cowsay-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + $portName = $portVersion + cmd:cowsay + cmd:cowthink + " +REQUIRES=" + haiku + perl + " + +INSTALL() +{ + mkdir -p $binDir $manDir/man1 $dataDir $docDir + cp cowsay $binDir + ln -s cowsay $binDir/cowthink + sed -i \ + -e 's|%BANGPERL%|!/usr/bin/env perl|' \ + -e "s|%PREFIX%/share/cows|$dataDir/cows|" \ + "$binDir"/cowsay + + cp cowsay.1 $manDir/man1 + ln -s cowsay.1 $manDir/man1/cowthink.1 + cowsDir="`finddir B_SYSTEM_DATA_DIRECTORY`/cows" + sed -i -e "s|[^[:space:]]*/share/cows|$cowsDir|" "$manDir"/man1/cowsay.1 + + cp -r cows $dataDir + rm $dataDir/cows/mech-and-cow + + cp README $docDir +}