mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
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.
51 lines
1.2 KiB
Bash
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
|
|
}
|