mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
cowsay: new recipe (#3219)
This commit is contained in:
43
games-misc/cowsay/cowsay-3.03.recipe
Normal file
43
games-misc/cowsay/cowsay-3.03.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user