blob: e9c9ad282547c478b8f6a056bd0133fe14219047 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Obed N Munoz <obed.n.munoz@gmail.com>
# Contributor: Anthony Bonafide <AnthonyMBonafide@gmail.com>
# Contributor: fzerorubigd <fzerorubigd@gmail.com>
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Rémy Oudompheng <remy@archlinux.org>
# Contributor: Andres Perera <andres87p gmail>
# Contributor: Matthew Bauer <mjbauer95@gmail.com>
# Contributor: Christian Himpel <chressie@gmail.com>
# Contributor: Mike Rosset <mike.rosset@gmail.com>
# Contributor: Daniel YC Lin <dlin.tw@gmail.com>
# Contributor: John Luebs <jkluebs@gmail.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgname=go-git
epoch=1
pkgver=go1.15beta1.r138.gba9e1088997
pkgrel=1
pkgrepo=go
pkgdesc='Core compiler tools for the Go programming language'
arch=(i686 x86_64)
url='http://golang.org/'
license=(BSD)
makedepends=(git go)
provides=(go)
conficts=(go)
options=(!strip staticlibs)
source=(git+https://go.googlesource.com/go#branch=master)
md5sums=('SKIP')
export GOOS=linux
case "$CARCH" in
x86_64) export GOARCH=amd64 ;;
i686) export GOARCH=386 GO386=387 ;;
esac
export GOROOT_FINAL=/usr/lib/go
export GOROOT_BOOTSTRAP=/usr/lib/go
pkgver() {
cd go
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
export GOROOT="$srcdir/$pkgrepo"
export GOBIN="$GOROOT/bin"
export GOPATH="$srcdir/"
cd $pkgrepo/src
./make.bash --no-clean
}
check() {
export GOROOT="$srcdir/$pkgrepo"
export GOBIN="$GOROOT/bin"
export PATH="$srcdir/$pkgrepo-$pkgver/bin:$PATH"
export GO_TEST_TIMEOUT_SCALE=2
cd $pkgrepo/src
./run.bash --no-rebuild -v -v -v -k
}
package() {
provides=(go)
conflicts=(go)
cd $pkgrepo
install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go"
cp -a bin pkg src lib misc "$pkgdir/usr/lib/go"
cp -r doc/* "$pkgdir/usr/share/doc/go"
ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go"
ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt"
ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE"
rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
}
|