opnsense-ports/sysutils/eza/Makefile
Franco Fichtner 356a1424ff */*: sync with upstream
Taken from: FreeBSD
2024-12-02 13:20:49 +01:00

39 lines
1.7 KiB
Makefile

PORTNAME= eza
DISTVERSION= 0.20.10
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://github.com/eza-community/${PORTNAME}/archive/refs/tags/v${DISTVERSION}/${DISTVERSION}.tar.gz?dummy=/:src \
https://github.com/eza-community/${PORTNAME}/releases/download/v${DISTVERSION}/man-${DISTVERSION}.tar.gz?dummy=/:man
DISTFILES= ${PORTNAME}-man-${DISTVERSION}.tar.gz:man \
${PORTNAME}-${DISTVERSION}.tar.gz:src
MAINTAINER= kdeguchi@sz.tokoha-u.ac.jp
COMMENT= Modern, maintained replacement for ls
WWW= https://eza.rocks/
LICENSE= EUPL-1.2
LICENSE_NAME= EUROPEAN UNION PUBLIC LICENCE v. 1.2
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= cargo
PLIST_FILES= bin/${PORTNAME} \
etc/bash_completion.d/${PORTNAME}.bash \
share/fish/completions/${PORTNAME}.fish \
share/man/man1/eza.1.gz \
share/man/man5/eza_colors-explanation.5.gz \
share/man/man5/eza_colors.5.gz \
share/zsh/site-functions/_${PORTNAME}
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_DATA} ${WRKSRC}/completions/bash/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}.bash
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
${INSTALL_DATA} ${WRKSRC}/completions/fish/${PORTNAME}.fish ${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/completions/zsh/_${PORTNAME} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
${INSTALL_MAN} ${WRKDIR}/target/man-${DISTVERSION}/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_MAN} ${WRKDIR}/target/man-${DISTVERSION}/*.5 ${STAGEDIR}${PREFIX}/share/man/man5
.include <bsd.port.mk>