blob: 1b8d4491c72ec335d4b111ea3c5ab572fbc4f1e4 (
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=0.6.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="ccc0fce4a46559d42e93308ed62dac3f git-lfs-0.6.0.tar.gz"
sha256sums="cfb270be1e480c70f0cea8eacf9828c2d7ef590532b8a88931ca58e1505183c1 git-lfs-0.6.0.tar.gz"
sha512sums="90b994d6840d265ee3bcadcc9c371608b8fa3f1fce50253aedea2d172f1324b93995ebe0e7ada291764d2e68b8c85bd2992e7dda8d76cd271bd9c4883d95f907 git-lfs-0.6.0.tar.gz"
|