Skip to content

Commit d1eb8f9

Browse files
committed
Clifm : add recipe
1 parent 85858bf commit d1eb8f9

File tree

7 files changed

+112
-0
lines changed

7 files changed

+112
-0
lines changed

build/clifm/build.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/bash
2+
#
3+
# {{{ CDDL HEADER
4+
#
5+
# This file and its contents are supplied under the terms of the
6+
# Common Development and Distribution License ("CDDL"), version 1.0.
7+
# You may only use this file in accordance with the terms of version
8+
# 1.0 of the CDDL.
9+
#
10+
# A full copy of the text of the CDDL should have accompanied this
11+
# source. A copy of the CDDL is also available via the Internet at
12+
# http://www.illumos.org/license/CDDL.
13+
# }}}
14+
15+
# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.
16+
17+
. ../../lib/build.sh
18+
19+
PROG=clifm
20+
VER=1.26.3
21+
PKG=ooce/application/clifm
22+
SUMMARY="$PROG"
23+
DESC="A shell-like, text-based terminal file manager"
24+
25+
set_arch 64
26+
set_clangver
27+
28+
#SKIP_SSP_CHECK=1
29+
30+
CONFIGURE_OPTS="
31+
-DCMAKE_BUILD_TYPE=Release
32+
-DCMAKE_INSTALL_PREFIX=$PREFIX
33+
-DCMAKE_STRIP=$USRBIN/true
34+
"
35+
36+
pre_build() {
37+
typeset arch=$1
38+
39+
CONFIGURE_OPTS[$arch]=
40+
LDFLAGS[$arch]+=" -Wl,-R$PREFIX/${LIBDIRS[$arch]}"
41+
}
42+
43+
init
44+
download_source $PROG $PROG $VER
45+
patch_source
46+
prep_build cmake
47+
build -noctf
48+
strip_install
49+
make_package
50+
clean_up
51+
52+
# Vim hints
53+
# vim:ts=4:sw=4:et:fdm=marker

build/clifm/local.mog

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# This file and its contents are supplied under the terms of the
3+
# Common Development and Distribution License ("CDDL"), version 1.0.
4+
# You may only use this file in accordance with the terms of version
5+
# 1.0 of the CDDL.
6+
#
7+
# A full copy of the text of the CDDL should have accompanied this
8+
# source. A copy of the CDDL is also available via the Internet at
9+
# http://www.illumos.org/license/CDDL.
10+
#
11+
12+
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
13+
14+
license LICENSE license=GPLv2
15+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index caca0fda..02a21df0 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -35,9 +35,10 @@ elseif(CYGWIN)
6+
)
7+
elseif(UNIX)
8+
target_link_libraries(clifm PUBLIC
9+
- readline
10+
- acl
11+
- cap
12+
+ readline
13+
+ ncurses
14+
+ intl
15+
+ nvpair
16+
magic
17+
)
18+
endif()
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/src/translate_key.h b/src/translate_key.h
2+
index b1cccf84..1cb59c5c 100644
3+
--- a/src/translate_key.h
4+
+++ b/src/translate_key.h
5+
@@ -40,11 +40,15 @@
6+
#define CSI_INTRODUCER 0x5b /* [ */
7+
#define SS3_INTRODUCER 0x4f /* O */
8+
9+
-__BEGIN_DECLS
10+
+#ifdef __cplusplus
11+
+extern "C" {
12+
+#endif
13+
14+
char *translate_key(char *str, const int term_type);
15+
int is_end_seq_char(unsigned char c);
16+
17+
-__END_DECLS
18+
+#ifdef __cplusplus
19+
+}
20+
+#endif
21+
22+
#endif /* TRANSLATE_KEY_H */

build/clifm/patches/series

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
01_CMakeLists.txt
2+
02_translate_key.h

doc/baseline

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
extra.omnios ooce/aarch64-build-tools
22
extra.omnios ooce/application/alpine
3+
extra.omnios ooce/application/clifm
34
extra.omnios ooce/application/fcgiwrap
45
extra.omnios ooce/application/gitea
56
extra.omnios ooce/application/gnuplot

doc/packages.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
| Package | Version | Link | Maintainer |
22
| :------ | :------ | :--- | :--------- |
33
| ooce/application/alpine | 2.26 | https://alpineapp.email/ | [omniosorg](https://github.com/omniosorg)
4+
| ooce/application/clifm | 1.26.3 | https://github.com/leo-arch/clifm | [omniosorg](https://github.com/omniosorg)
45
| ooce/application/fcgiwrap | 1.1.0 | https://github.com/gnosek/fcgiwrap/tags | [omniosorg](https://github.com/omniosorg)
56
| ooce/application/gitea | 1.23.8 | https://github.com/go-gitea/gitea/releases | [omniosorg](https://github.com/omniosorg)
67
| ooce/application/gnuplot | 6.0.2 | https://sourceforge.net/projects/gnuplot/files/gnuplot/ http://www.gnuplot.info/ | [omniosorg](https://github.com/omniosorg)

0 commit comments

Comments
 (0)