diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-10-24 19:24:58 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-27 20:44:20 +0100 |
commit | 83b3403b526a3d68400e32bc1fa6995908ff6413 (patch) | |
tree | 030e1a60e7b8ab363fcb85320d788a11dd38dcac /Ports/lite-xl/package.sh | |
parent | 4b305e8fe4cb4c424c3cf2204d08b3827ffc6b1f (diff) | |
download | serenity-83b3403b526a3d68400e32bc1fa6995908ff6413.zip |
Ports: Add Lite-XL
Diffstat (limited to 'Ports/lite-xl/package.sh')
-rwxr-xr-x | Ports/lite-xl/package.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Ports/lite-xl/package.sh b/Ports/lite-xl/package.sh new file mode 100755 index 0000000000..6db07e6752 --- /dev/null +++ b/Ports/lite-xl/package.sh @@ -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 +} |