forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.sh
executable file
·38 lines (34 loc) · 876 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
30
31
32
33
34
35
36
37
38
#!/usr/bin/env -S bash ../.port_include.sh
port='wayland'
version='1.21.0'
useconfigure='true'
configopts=(
"--buildtype=release"
"--cross-file=${SERENITY_BUILD_DIR}/meson-cross-file.txt"
"-Dlibraries=true"
"-Dscanner=true"
"-Dtests=false"
"-Ddocumentation=false"
)
depends=(
'expat'
'libffi'
'libxml2'
)
files=(
"https://gitlab.freedesktop.org/wayland/wayland/-/releases/${version}/downloads/wayland-${version}.tar.xz#6dc64d7fc16837a693a51cfdb2e568db538bfdc9f457d4656285bb9594ef11ac"
)
configure() {
# TODO: Figure out why GCC doesn't autodetect that libgcc_s is needed.
if [ "${SERENITY_TOOLCHAIN}" = "GNU" ]; then
export LDFLAGS="-lgcc_s"
fi
run meson build "${configopts[@]}"
}
build() {
run ninja -C build
}
install() {
export DESTDIR="${SERENITY_INSTALL_ROOT}"
run meson install -C build
}