Files
haikuports/app-shells/mksh/mksh-52c.recipe
fbrosson 875c4ddcad mksh: bump version, add x86{,_64} with a patch.
* Drop the "r" prefix in version.
* Bump version to 52c and use portVersion where appropriate.
* Fix wrong LICENSE declaration and add missing licenses.
* Move haiku_devel from BUILD_PREREQUIRES to BUILD_REQUIRES to be
  consistent with most other recipes.
* Add missing cmd:awk to BUILD_PREREQUIRES.
* Add x86{,_64} to ARCHITECTURES with a tiny conditional patch to make
  the recipe build on these architectures.
* Do not create the "sh -> mksh" symbolic link anymore as changing the
  default "sh -> bash" symbolic link might create problems.
* Do not "mkdir -p" and, instead, call "install" with the "-D" switch.
* Do not use documentation/packages/mksh/mksh/examples/ but
  documentation/packages/mksh/examples/ to install dot.mkshrc.
* Don't copy dot.mkshrc in documentation/packages/mksh/mksh/examples/
  but in documentation/packages/mksh/examples/
2016-03-22 23:44:55 +00:00

70 lines
1.5 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="The MirBSD Korn Shell"
DESCRIPTION="An actively developed free implementation of the Korn Shell \
programming language and a successor to the Public Domain Korn Shell (pdksh).
mksh targets users who desire a compact, fast, reliable, secure shell not cut \
off modern extensions; a shell with Unicode support; an actively developed, \
current, and portable product; one with developers that listen to their users \
requests and implement them if they actually make sense.
mksh aims to replace pdksh in all but very rare use cases (such as support for \
checking the Unix mbox) and in all operating environments (thus including \
patches from pdksh on e.g. Debian)."
HOMEPAGE="https://www.mirbsd.org/mksh.htm"
COPYRIGHT="2002-2016 Thorsten Glaser"
LICENSE="MirOS
BSD (3-clause)
ISC"
REVISION="1"
SOURCE_URI="https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R$portVersion.tgz"
CHECKSUM_SHA256="c6341acea725103f782c14e994d6e12dabaee69e60fe1bc78603a41258d43ba6"
SOURCE_DIR="mksh"
if [ "$targetArchitecture" != x86_gcc2 ]; then
PATCHES="mksh-$portVersion.patch"
fi
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
mksh = $portVersion
cmd:mksh
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:ed
cmd:gcc
cmd:grep
cmd:install
cmd:make
cmd:nroff
cmd:perl
"
BUILD()
{
sh Build.sh
}
INSTALL()
{
# Installing the shell:
install -D -c -s -m 555 mksh $binDir/mksh
install -D -c -m 444 dot.mkshrc $docDir/examples/dot.mkshrc
# Installing the manual:
install -D -c -m 444 mksh.1 $manDir/man1/mksh.1
}
TEST()
{
./test.sh
}