mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 09:20:36 +00:00
Ports: sl (#1802)
This commit is contained in:
parent
e639c5bc25
commit
d09bea5beb
Notes:
sideshowbarker
2024-07-19 07:35:33 +09:00
Author: https://github.com/Ivoah 🔰 Commit: https://github.com/SerenityOS/serenity/commit/d09bea5beb5 Pull-request: https://github.com/SerenityOS/serenity/pull/1802
2 changed files with 30 additions and 0 deletions
16
Ports/sl/package.sh
Executable file
16
Ports/sl/package.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash ../.port_include.sh
|
||||
port=sl
|
||||
version=git
|
||||
workdir=sl-master
|
||||
files="https://github.com/mtoyoda/sl/archive/master.tar.gz sl-git.tar.gz"
|
||||
depends="ncurses"
|
||||
|
||||
build() {
|
||||
run ${CC} -I${SERENITY_ROOT}/Root/usr/local/include/ncurses -L${SERENITY_ROOT}/Root/usr/local/lib -o sl sl.c -lncurses -ltinfo
|
||||
}
|
||||
|
||||
post_install() {
|
||||
# Dirty hack that seems to be necessary to make ncurses play nice
|
||||
mkdir -p ${SERENITY_ROOT}/Root/usr/local/share/terminfo/x
|
||||
cp ${SERENITY_ROOT}/Root/usr/local/share/terminfo/78/xterm ${SERENITY_ROOT}/Root/usr/local/share/terminfo/x/
|
||||
}
|
14
Ports/sl/patches/serenity-changes.patch
Normal file
14
Ports/sl/patches/serenity-changes.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index c3005d2..e071fc9 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -18,3 +18,9 @@ clean:
|
||||
rm -f sl
|
||||
|
||||
distclean: clean
|
||||
+
|
||||
+install: all
|
||||
+ mkdir -p ${DESTDIR}/usr/bin
|
||||
+ install sl ${DESTDIR}/usr/bin/sl
|
||||
+ mkdir -p ${DESTDIR}/usr/share/man/man1
|
||||
+ gzip -9 -c < sl.1 > ${DESTDIR}/usr/share/man/man1/sl.1.gz
|
Loading…
Reference in a new issue