mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 09:27:46 +00:00
Ports: Add Lite-XL
This commit is contained in:
parent
4b305e8fe4
commit
83b3403b52
4 changed files with 241 additions and 0 deletions
41
Ports/lite-xl/package.sh
Executable file
41
Ports/lite-xl/package.sh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port='lite-xl'
|
||||
version='2.1.0'
|
||||
commit_hash='97ba91af8b855a10a14bdc5cad774c877156f4a9'
|
||||
useconfigure='true'
|
||||
configopts=(
|
||||
"--buildtype=release"
|
||||
"--cross-file=${SERENITY_BUILD_DIR}/meson-cross-file.txt"
|
||||
)
|
||||
depends=(
|
||||
'freetype'
|
||||
'lua'
|
||||
'pcre2'
|
||||
'SDL2'
|
||||
)
|
||||
files="https://github.com/lite-xl/lite-xl/archive/${commit_hash}.tar.gz lite-xl-97ba91af8.tar.gz 25a0dd0a6ef856fd312eecd54983d401224eb8d7a5d5aa4a37c9131ac77bd9ca"
|
||||
workdir="lite-xl-${commit_hash}"
|
||||
auth_type='sha256'
|
||||
launcher_name='Lite-XL'
|
||||
icon_file='resources/icons/icon.ico'
|
||||
launcher_category='Development'
|
||||
launcher_command='/usr/local/bin/lite-xl'
|
||||
launcher_run_in_terminal='false'
|
||||
|
||||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue