pkgsrc/devel/git-lfs/Makefile
2021-01-23 14:22:52 +00:00

31 lines
896 B
Makefile

# $NetBSD: Makefile,v 1.30 2021/01/23 14:22:53 bsiegert Exp $
DISTNAME= git-lfs-2.12.0
PKGREVISION= 4
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=git-lfs/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://git-lfs.github.com/
COMMENT= Git extension for versioning large files
LICENSE= mit
NO_CONFIGURE= yes
USE_LANGUAGES= c
GO_SRCPATH= github.com/git-lfs/git-lfs
GO_DIST_BASE= ${PKGNAME_NOREV}
INSTALLATION_DIRS= bin
pre-build:
cp ${WRKSRC}/lfshttp/certs_openbsd.go ${WRKSRC}/lfshttp/certs_netbsd.go
# generate content for "git-lfs --help"
ln -sf ${GO} ${BUILDLINK_DIR}/bin/go
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} GOPATH=${WRKDIR} ${GO} generate github.com/git-lfs/git-lfs/commands
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/git-lfs ${DESTDIR}${PREFIX}/bin/git-lfs
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"