pkgsrc/sysutils/direnv/Makefile
2021-09-17 13:52:45 +00:00

26 lines
746 B
Makefile

# $NetBSD: Makefile,v 1.8 2021/09/17 13:52:54 bsiegert Exp $
DISTNAME= direnv-2.27.0
PKGREVISION= 7
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=direnv/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@pkgsrc.org
HOMEPAGE= https://direnv.net/
COMMENT= Environment switcher for the shell
LICENSE= mit
.include "go-modules.mk"
do-build:
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO} build -o direnv
do-install:
${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/bin
${INSTALL_MAN_DIR} ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1
${INSTALL_PROGRAM} ${WRKSRC}/direnv ${DESTDIR}/${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/*.1 ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1
.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"