summaryrefslogtreecommitdiff
path: root/Ports/oksh/package.sh
blob: 8cf138ab42617bec3ff3f2ccaaa4e96ea825a315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env -S bash ../.port_include.sh
port=oksh
useconfigure=true
version=7.0
depends=("ncurses")
workdir=oksh-${version}
files="https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz oksh-${version}.tar.gz 21d5891f38ffea3a5d1aa8c494f0a5579c93778535e0a92275b102dec3221da1"
auth_type=sha256

export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"

configure() {
    export CFLAGS="" 
    export LDFLAGS="-lncurses"
    run ./configure --no-thanks
}

install() {
    run cp oksh "${SERENITY_INSTALL_ROOT}/bin"
}