# -*- coding: utf-8; tab-width: 4 -*-
Package: git-lfs
Version: 2.9.0
Revision: 1
Description: Git Large File Storage extension
DescDetail: <<
	Git Large File Storage (LFS) replaces large files such as audio
	samples, videos, datasets, and graphics with text pointers inside
	Git, while storing the file contents on a remote server like
	GitHub.com or GitHub Enterprise.
<<
DescUsage: <<
	After installing, run 'git lfs init' from any user from which you
	want to use git-lfs. This only needs to be done once.
<<
License: BSD
Homepage: https://git-lfs.github.com
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>

Source: https://github.com/%n/%n/releases/download/v%v/%n-v%v.tar.gz
Source-Checksum: SHA256(f1963ad88747577ffeeb854649aeacaa741c59be74683da4d46b129a72d111b7)
SourceDirectory: %n-%v

# The latest Makefile of git-lfs uses git itself, which expects there to be a git repo
# with a .git directory to build within. So we must patch to remove the calls to git and
# fix @! which was causing gnumake to screw up.
PatchFile: git-lfs.patch
PatchFile-MD5: 365843d57b751dcc9a49652596da9e40

Depends: git (>= 2.11.0-1)
BuildDepends: go (>= 1.13.4-1), ronn-rb25 | ronn-rb24 | ronn-rb23 | ronn-rb22 | ronn-rb21 | ronn-rb20

CompileScript: <<
	#!/bin/sh -ev
	export GOPATH=%b

	rm $GOPATH/go.mod
	mkdir -p src/github.com/git-lfs
	ln -s %b src/github.com/git-lfs/git-lfs

	pushd  src/github.com/git-lfs/git-lfs
	make
	popd

	make man
<<

InstallScript: <<
	install -d -m 0755 %i/bin
	install -m 0755 bin/git-lfs %i/bin
	
	install -d -m 0755 %i/share/man/man1
	install -m 0644 man/*.1 %i/share/man/man1
	
<<

DocFiles: man/*.1.html CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md