diff --git a/build/clifm/build.sh b/build/clifm/build.sh new file mode 100755 index 000000000..caf3c7da9 --- /dev/null +++ b/build/clifm/build.sh @@ -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 +} + +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 diff --git a/build/clifm/local.mog b/build/clifm/local.mog new file mode 100644 index 000000000..4a82a5f57 --- /dev/null +++ b/build/clifm/local.mog @@ -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 + diff --git a/build/clifm/patches/01_translate_key.h b/build/clifm/patches/01_translate_key.h new file mode 100644 index 000000000..58853f0af --- /dev/null +++ b/build/clifm/patches/01_translate_key.h @@ -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 */ diff --git a/build/clifm/patches/series b/build/clifm/patches/series new file mode 100644 index 000000000..71590c690 --- /dev/null +++ b/build/clifm/patches/series @@ -0,0 +1 @@ +01_translate_key.h diff --git a/doc/baseline b/doc/baseline index da7b64eca..a13377cd9 100644 --- a/doc/baseline +++ b/doc/baseline @@ -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 diff --git a/doc/packages.md b/doc/packages.md index f64c36952..e3ea58ce5 100644 --- a/doc/packages.md +++ b/doc/packages.md @@ -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)