mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
community/go to 1.11.2-2
This commit is contained in:
parent
21263bcd97
commit
a25aeede55
1 changed files with 23 additions and 11 deletions
|
@ -1,5 +1,15 @@
|
|||
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
||||
# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
|
||||
# Maintainer: Pierre Neidhardt <ambrevar@gmail.com>
|
||||
# Maintainer: Morten Linderud <foxboron@archlinux.org>
|
||||
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
||||
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
|
||||
# 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>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - added switches for our architectures
|
||||
|
@ -9,13 +19,13 @@ pkgbase=go
|
|||
pkgname=(go go-pie)
|
||||
epoch=2
|
||||
pkgver=1.11.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
arch=(x86_64)
|
||||
url='http://golang.org/'
|
||||
url='https://golang.org/'
|
||||
license=(BSD)
|
||||
makedepends=(git go)
|
||||
source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz
|
||||
default-buildmode-pie.patch)
|
||||
source=("https://storage.googleapis.com/golang/go$pkgver.src.tar.gz"
|
||||
'default-buildmode-pie.patch')
|
||||
sha256sums=('042fba357210816160341f1002440550e952eb12678f7c9e7e9d389437942550'
|
||||
'9d2f0d201d4e002d74f548cc82bd131139bab5dd62191004c71dd430fdc1666d')
|
||||
|
||||
|
@ -32,10 +42,10 @@ export GOROOT_BOOTSTRAP=/usr/lib/go
|
|||
export GOCACHE=off
|
||||
|
||||
prepare() {
|
||||
cp -r $pkgbase ${pkgbase}-pie
|
||||
cp -r $pkgbase $pkgbase-pie
|
||||
|
||||
cd ${pkgbase}-pie
|
||||
patch -p1 -i "$srcdir"/default-buildmode-pie.patch
|
||||
cd $pkgbase-pie
|
||||
patch -p1 -i "$srcdir/default-buildmode-pie.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
@ -76,14 +86,14 @@ _package() {
|
|||
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"
|
||||
install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION"
|
||||
|
||||
rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap"
|
||||
rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api"
|
||||
rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap" "$pkgdir/usr/lib/go/pkg/tool/*/api"
|
||||
|
||||
# TODO: Figure out if really needed
|
||||
rm -rf "$pkgdir"/usr/lib/go/pkg/obj/go-build/*
|
||||
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$1/LICENSE"
|
||||
}
|
||||
|
||||
package_go() {
|
||||
|
@ -99,3 +109,5 @@ package_go-pie() {
|
|||
|
||||
_package $pkgname
|
||||
}
|
||||
|
||||
# vim: ts=2 sw=2 et
|
||||
|
|
Loading…
Reference in a new issue