1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 03:27:45 +00:00

Ports: Added an oksh port

Currently has some problems such as not killing jobs when (ctrl + c)
and depends on an implementation of sigsuspend.
This commit is contained in:
Manuel Palenzuela 2021-04-05 22:58:01 +02:00 committed by Andreas Kling
parent 6d8ca9871c
commit 8b0f1f816b
8 changed files with 275 additions and 0 deletions

18
Ports/oksh/package.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=oksh
useconfigure=true
version=6.8.1
depends="ncurses"
workdir=oksh-${version}
files="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz oksh-${version}.tar.gz"
configure() {
export CC=${SERENITY_ROOT}/Toolchain/Local/${SERENITY_ARCH}/bin/${SERENITY_ARCH}-pc-serenity-gcc
export CFLAGS=""
export LDFLAGS="-lncurses"
run ./configure --no-thanks
}
install() {
run cp oksh "${SERENITY_BUILD_DIR}/Root/bin"
}