Ports: Add lxt port

This commit is contained in:
Seal Sealy 2023-07-18 00:04:46 +03:00 committed by Tim Schumacher
parent 1262a7d142
commit 9b1e33af69
Notes: sideshowbarker 2024-07-16 23:03:06 +09:00
4 changed files with 46 additions and 0 deletions

View File

@ -178,6 +178,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`luajit`](luajit/) | LuaJIT | 2.1.0-beta3 | https://luajit.org/luajit.html |
| [`luarocks`](luarocks/) | LuaRocks | 3.8.0 | https://luarocks.org/ |
| [`lure`](lure/) | Lure of the Temptress | 1.1 | https://www.scummvm.org/games/#games-lure |
| [`lxt`](lxt/) | linuXtree - an XTree Gold clone | 1.3b | http://stahlke.org/dan/lxt/ |
| [`lynx`](lynx/) | Lynx web browser | 2.8.9rel.1 | https://lynx.invisible-island.net/ |
| [`lz4`](lz4/) | lz4 - Extremely Fast Compression algorithm | 1.9.4 | https://github.com/lz4/lz4 |
| [`lzo`](lzo/) | LZO lossless data compression algorithm | 2.10 | https://www.oberhumer.com/opensource/lzo/ |

18
Ports/lxt/package.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='lxt'
version='1.3b'
files=(
"http://stahlke.org/dan/lxt/lxt-${version}.tar.gz 7a3ab299a6d61a71b271fd13b847b5a1c22a5f95df78561a325c78d50b6a6bc7"
)
useconfigure='true'
depends=(
'bash'
'ncurses'
)
configure() {
export ac_cv_func_fnmatch_works=yes
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
run ./configure --host=x86_64-pc-serenity
}

View File

@ -0,0 +1,20 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Seal Sealy <butilkama@gmail.com>
Date: Mon, 7 Aug 2023 07:18:49 +0300
Subject: [PATCH] Fix path to clear utility
---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 5308cb634834d78b9de9df93c7a562299bfb4125..b203853250a84322a8dc67d38f200381336b815e 100644
--- a/main.c
+++ b/main.c
@@ -206,5 +206,5 @@ void crapout_nobug(const char *fmt, ...) {
}
void clearscreen(void) {
- system("/usr/bin/clear");
+ system("/bin/clear");
}

View File

@ -0,0 +1,7 @@
# Patches for lxt on SerenityOS
## `0001-Fix-path-to-clear-utility.patch`
Fix path to clear utility