forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.sh
executable file
·29 lines (28 loc) · 887 Bytes
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env -S bash ../.port_include.sh
port='nethack'
version='3.6.7'
workdir="NetHack-${version}"
files=(
"https://www.nethack.org/download/${version}/nethack-${version//.}-src.tgz#98cf67df6debf9668a61745aa84c09bcab362e5d33f5b944ec5155d44d2aacb2"
)
depends=(
'ncurses'
'bash'
)
build() {
run sys/unix/setup.sh sys/unix/hints/serenity
if [ ! -f ${workdir}/util/makedefs.host ]; then
host_env
run make -C util makedefs "${makeopts[@]}"
run cp util/makedefs util/makedefs.host
run make -C util dgn_comp "${makeopts[@]}"
run cp util/dgn_comp util/dgn_comp.host
run make -C util lev_comp "${makeopts[@]}"
run cp util/lev_comp util/lev_comp.host
run make -C util dlb "${makeopts[@]}"
run cp util/dlb util/dlb.host
target_env
run make clean
fi
run make "${makeopts[@]}"
}