aboutsummaryrefslogtreecommitdiffstats
path: root/testing/git-lfs/APKBUILD
blob: 840101b9188905b1c35e31894f4cebe1b23f8a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=git-lfs
pkgver=1.1.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="089b5f215789437e8bc12915fb5d883f  git-lfs-1.1.0.tar.gz"
sha256sums="1f246ec5f1141677b05847b3e9bcb9929c9d9b1afc78585d5776a9c18186ea9b  git-lfs-1.1.0.tar.gz"
sha512sums="4a5d379db165ced3c2d536f51d2729dbc7be4f0e8f1e2e6d9659ee1cba9978bdc5a83d7a90e2c91ffd5ff78d0fc328539f2e18b641c10505a16743590829da56  git-lfs-1.1.0.tar.gz"