diff options
author | nia <nia@pkgsrc.org> | 2020-07-23 12:38:44 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-07-23 12:38:44 +0000 |
commit | 29220e8ff9c8a96d03918593f47e2bcd5d849b98 (patch) | |
tree | 5df0e4fbed65da30662bc73dc13fb8dcb0148c99 /sysutils/cfm | |
parent | 80880ff7034adc30e043826b3df375e079673fee (diff) | |
download | pkgsrc-29220e8ff9c8a96d03918593f47e2bcd5d849b98.tar.gz |
sysutils: Add cfm
Cactus File Manager (cfm) is a TUI file manager with the goal of being
simple, easy, and bloat-free, utilizing Vi-inspired keybinds.
Diffstat (limited to 'sysutils/cfm')
-rw-r--r-- | sysutils/cfm/DESCR | 2 | ||||
-rw-r--r-- | sysutils/cfm/Makefile | 18 | ||||
-rw-r--r-- | sysutils/cfm/PLIST | 3 | ||||
-rw-r--r-- | sysutils/cfm/distinfo | 7 | ||||
-rw-r--r-- | sysutils/cfm/patches/patch-Makefile | 36 |
5 files changed, 66 insertions, 0 deletions
diff --git a/sysutils/cfm/DESCR b/sysutils/cfm/DESCR new file mode 100644 index 00000000000..ae8216c4d78 --- /dev/null +++ b/sysutils/cfm/DESCR @@ -0,0 +1,2 @@ +Cactus File Manager (cfm) is a TUI file manager with the goal of being +simple, easy, and bloat-free, utilizing Vi-inspired keybinds. diff --git a/sysutils/cfm/Makefile b/sysutils/cfm/Makefile new file mode 100644 index 00000000000..61812da9a0c --- /dev/null +++ b/sysutils/cfm/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2020/07/23 12:38:44 nia Exp $ + +DISTNAME= cfm-0.6.3 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_GITHUB:=willeccles/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://eccles.dev/cfm/ +COMMENT= Simple and fast TUI file manager with no dependencies +LICENSE= mpl-2.0 + +MAKE_FLAGS+= MANDIR=${PKGMANDIR} + +CPPFLAGS.NetBSD+= -D_NETBSD_SOURCE # dirfd + +.include "../../mk/curses.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/cfm/PLIST b/sysutils/cfm/PLIST new file mode 100644 index 00000000000..9d3ca9fa01f --- /dev/null +++ b/sysutils/cfm/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2020/07/23 12:38:44 nia Exp $ +bin/cfm +man/man1/cfm.1 diff --git a/sysutils/cfm/distinfo b/sysutils/cfm/distinfo new file mode 100644 index 00000000000..8afb82953ee --- /dev/null +++ b/sysutils/cfm/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2020/07/23 12:38:44 nia Exp $ + +SHA1 (cfm-0.6.3.tar.gz) = 864747d2fbd8b6905e6a28b3e25fb5ce49830feb +RMD160 (cfm-0.6.3.tar.gz) = 5d43bf4625dad5cc87da8b88426ba4f8a1d59773 +SHA512 (cfm-0.6.3.tar.gz) = 7e9db3f49b107d97917683870176fb05a21a664cf610e76234bdc74b98a4d254bb4bb7efffb9fe34f314c0316bbc5e9b3a6f523e867b13de32578cab8e4615e3 +Size (cfm-0.6.3.tar.gz) = 72922 bytes +SHA1 (patch-Makefile) = f60dbb3f7c800742ba7ce6d27355d72154b5f3cd diff --git a/sysutils/cfm/patches/patch-Makefile b/sysutils/cfm/patches/patch-Makefile new file mode 100644 index 00000000000..0f75055b8d1 --- /dev/null +++ b/sysutils/cfm/patches/patch-Makefile @@ -0,0 +1,36 @@ +$NetBSD: patch-Makefile,v 1.1 2020/07/23 12:38:44 nia Exp $ + +- Don't pass -O3 unconditionally +- Support PKGMANDIR + +--- Makefile.orig 2020-07-07 20:26:19.000000000 +0000 ++++ Makefile +@@ -3,9 +3,10 @@ SRC = cfm.c + CONF = config.h + DEFCONF = config.def.h + MANPAGE = cfm.1 ++MANDIR = share/man + PREFIX ?= /usr/local + +-CFLAGS += -O3 -std=c11 -Wall -W -pedantic ++CFLAGS += -std=c11 -Wall -W -pedantic + CPPFLAGS += -D_XOPEN_SOURCE=700 + + .PHONY: all install uninstall clean +@@ -20,13 +21,13 @@ $(CONF): + + install: $(TARGET) + mkdir -p $(DESTDIR)$(PREFIX)/bin +- mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 ++ mkdir -p $(DESTDIR)$(PREFIX)/$(MANDIR)/man1 + install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) +- install -m644 $(MANPAGE) $(DESTDIR)$(PREFIX)/share/man/man1/$(MANPAGE) ++ install -m644 $(MANPAGE) $(DESTDIR)$(PREFIX)/$(MANDIR)/man1/$(MANPAGE) + + uninstall: + $(RM) $(DESTDIR)$(PREFIX)/bin/$(TARGET) +- $(RM) $(DESTDIR)$(PREFIX)/share/man/man1/$(MANPAGE) ++ $(RM) $(DESTDIR)$(PREFIX)/$(MANDIR)/man1/$(MANPAGE) + + clean: + $(RM) $(TARGET) |