COMMENT =	Filesystem inspection tool and viewer for UNIX-like systems

GH_ACCOUNT =	ferusx
GH_PROJECT =	noct
GH_TAGNAME =	v1.1.0

CATEGORIES =	sysutils

MAINTAINER =	Markus Johnsson <hedningakjetil@gmail.com>
HOMEPAGE =	https://github.com/ferusx/noct

# BSD-3-Clause
PERMIT_PACKAGE =	Yes

WANTLIB +=	${MODCARGO_WANTLIB}

MODULES =	devel/cargo

CONFIGURE_STYLE =	cargo

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/target/release/noct \
	    ${PREFIX}/bin/noct
	ln -s noct ${PREFIX}/bin/nt

	${INSTALL_MAN} ${WRKSRC}/man/man1/noct.1 \
	    ${PREFIX}/man/man1/noct.1
	ln -s noct.1 ${PREFIX}/man/man1/nt.1

	${INSTALL_DATA_DIR} ${PREFIX}/share/noct/themes
	${INSTALL_DATA} ${WRKSRC}/themes/themes/*.toml \
	    ${PREFIX}/share/noct/themes/

	${INSTALL_DATA_DIR} ${PREFIX}/share/noct/themes/console
	${INSTALL_DATA} ${WRKSRC}/themes/themes/console/*.toml \
	    ${PREFIX}/share/noct/themes/console/

.include "crates.inc"
.include <bsd.port.mk>
