summaryrefslogtreecommitdiff
path: root/Ports/lua/lua.sh
blob: 924ca408aca048a79e7960ed6bbb9a5b8b8e286f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
PORT_DIR=lua
MAKEOPTS='generic'

INSTALLOPTS="INSTALL_TOP=$SERENITY_ROOT/Root/"

fetch() {
    run_fetch_web "http://www.lua.org/ftp/lua-5.3.5.tar.gz"
    run_patch lua.patch -p1
}
configure() {
    run_export_env CC i686-pc-serenity-gcc
}
run_make() {
    run_command make $MAKEOPTS "$@"
}

build() {
    run_make
}
install() {
    run_make_install DESTDIR="$SERENITY_ROOT"/Root
}
. ../.port_include.sh