# $MidnightBSD$
# $FreeBSD: head/devel/git-lfs/Makefile 452431 2017-10-19 17:20:29Z tcberner $

PORTNAME=	git-lfs
DISTVERSIONPREFIX=	v
DISTVERSION=	2.3.4
CATEGORIES=	devel

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Git extension for versioning large files

LICENSE=	mit
LICENSE_FILE=	${WRKSRC}/LICENSE.md

BUILD_DEPENDS=	bash:shells/bash
RUN_DEPENDS=	bash:shells/bash

USES=		go
USE_GITHUB=	yes
PLIST_FILES=	bin/git-lfs

GO_PKGNAME=	github.com/${PORTNAME}/${PORTNAME}

# see https://github.com/git-lfs/git-lfs/wiki/Installation

do-build:
	cd ${WRKSRC} && ${MKDIR} ${WRKSRC}/.tmp && TMPDIR=${WRKSRC}/.tmp script/bootstrap

pre-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/git-lfs ${STAGEDIR}${PREFIX}/bin/git-lfs

.include <bsd.port.mk>
