# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=git-lfs pkgver=1.0.0 pkgrel=0 pkgdesc="Git extension for versioning large files" url="https://git-lfs.github.com/" arch="all" license="MIT" depends="" depends_dev="" makedepends="go" install="" subpackages="$pkgname-doc" options="!strip" source="$pkgname-$pkgver.tar.gz::https://github.com/github/$pkgname/archive/v$pkgver.tar.gz" _builddir="$srcdir"/src/github.com/github prepare() { mkdir -p "$_builddir" ln -s "$srcdir"/$pkgname-$pkgver "$_builddir"/$pkgname || return 1 } build() { cd "$_builddir"/$pkgname GOPATH="$srcdir" go build || return 1 # TODO man page generation would require ronn which isn't packaged yet. # sh ./script/man } package() { cd "$_builddir"/$pkgname install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname || return 1 mkdir -p "$pkgdir"/usr/share/doc/$pkgname for file in api extensions.md spec.md README.md; do mv docs/$file "$pkgdir"/usr/share/doc/$pkgname/ || return 1 done } md5sums="c05a2a2947b56fb0d7e2ede15d47a86c git-lfs-1.0.0.tar.gz" sha256sums="bd9d0d597b36421babf282680d34d66b626facea63f68fc64399ac9fe70d2dd3 git-lfs-1.0.0.tar.gz" sha512sums="73bf3c5ba4872f783b348bffd386560d52c827fa17a583ca37794af2833fe0d5e0588f10e071e4fb8741ed5f1779f775e1b55adcebb7c6b657763c9e2bd51cd3 git-lfs-1.0.0.tar.gz"