Files
haikuports/games-misc/nyancat/nyancat-1.5.2.recipe
waddlesplash 4f180bdb94 Utilize the new "all" ARCHITECTURES keyword in most recipes. (#6189)
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
2021-09-15 15:40:18 -04:00

51 lines
1.2 KiB
Bash

SUMMARY="Your own Nyancat in your terminal"
DESCRIPTION="Nyancat is a CLI application that displays a poptart cat \
in your terminal. You can simply run the binary standalone or use the \
telnet server version of the CLI by adding the \"-t\" option."
HOMEPAGE="https://nyancat.dakko.us/"
COPYRIGHT="2011-2018 Kevin Lange"
LICENSE="UIUC"
REVISION="1"
SOURCE_URI="https://github.com/klange/nyancat/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="88cdcaa9c7134503dd0364a97fa860da3381a09cb555c3aae9918360827c2032"
SOURCE_FILENAME="nyancat-$portVersion.tar.gz"
SOURCE_DIR="nyancat-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
nyancat$secondaryArchSuffix = $portVersion
cmd:nyancat$commandSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
make
}
INSTALL()
{
install -m 755 -d "$commandBinDir" "$manDir"/man1
install -m 755 -t "$commandBinDir" src/nyancat
install -m 644 -t "$manDir"/man1 nyancat.1
}