Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions build/clifm/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/bash
#
# {{{ CDDL HEADER
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
# }}}

# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

PROG=clifm
VER=1.26.3
PKG=ooce/application/clifm
SUMMARY="$PROG"
DESC="A shell-like, text-based terminal file manager"

set_arch 64
set_clangver

build() {
pushd $TMPDIR/$BUILDDIR > /dev/null

logmsg "Building $PROG"

logcmd $MAKE -f misc/solaris/Makefile || logerr "Unable to build $PROG"

logmsg "Installing $PROG"
logcmd $MAKE -f misc/solaris/Makefile INSTALL=install PREFIX=$DESTDIR/$PREFIX install || logerr "Unable to install $PROG"

popd >/dev/null
}
Comment on lines +28 to +39
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When possible we try not to override the build framework. Could you instead use e.g.:

pre_configure() {
    typeset arch=$1

    subsume_arch $arch CFLAGS

    # No configure
    false
}


MAKE_ARGS="-f misc/solaris/Makefile"
MAKE_INSTALL_ARGS="$MAKE_ARGS INSTALL=install PREFIX=$PREFIX"

This will also make sure the CTF CFLAGS are used.


init
download_source $PROG $PROG $VER
patch_source
prep_build
build
make_package
clean_up

# Vim hints
# vim:ts=4:sw=4:et:fdm=marker
15 changes: 15 additions & 0 deletions build/clifm/local.mog
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

# Copyright 2025 OmniOS Community Edition (OmniOSce) Association.

license LICENSE license=GPLv2

22 changes: 22 additions & 0 deletions build/clifm/patches/01_translate_key.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/src/translate_key.h b/src/translate_key.h
index b1cccf84..1cb59c5c 100644
--- a/src/translate_key.h
+++ b/src/translate_key.h
@@ -40,11 +40,15 @@
#define CSI_INTRODUCER 0x5b /* [ */
#define SS3_INTRODUCER 0x4f /* O */

-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif

char *translate_key(char *str, const int term_type);
int is_end_seq_char(unsigned char c);

-__END_DECLS
+#ifdef __cplusplus
+}
+#endif

#endif /* TRANSLATE_KEY_H */
1 change: 1 addition & 0 deletions build/clifm/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
01_translate_key.h
1 change: 1 addition & 0 deletions doc/baseline
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
extra.omnios ooce/aarch64-build-tools
extra.omnios ooce/application/alpine
extra.omnios ooce/application/clifm
extra.omnios ooce/application/fcgiwrap
extra.omnios ooce/application/gitea
extra.omnios ooce/application/gnuplot
Expand Down
1 change: 1 addition & 0 deletions doc/packages.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
| Package | Version | Link | Maintainer |
| :------ | :------ | :--- | :--------- |
| ooce/application/alpine | 2.26 | https://alpineapp.email/ | [omniosorg](https://github.com/omniosorg)
| ooce/application/clifm | 1.26.3 | https://github.com/leo-arch/clifm | [omniosorg](https://github.com/omniosorg)
| ooce/application/fcgiwrap | 1.1.0 | https://github.com/gnosek/fcgiwrap/tags | [omniosorg](https://github.com/omniosorg)
| ooce/application/gitea | 1.23.8 | https://github.com/go-gitea/gitea/releases | [omniosorg](https://github.com/omniosorg)
| ooce/application/gnuplot | 6.0.2 | https://sourceforge.net/projects/gnuplot/files/gnuplot/ http://www.gnuplot.info/ | [omniosorg](https://github.com/omniosorg)
Expand Down