git » go-1.20.git » commit 9892248

- Adds fix-color patch for eli

author Morten Linderud
2020-10-16 18:03:10 UTC
committer Morten Linderud
2020-10-16 18:03:10 UTC
parent 342181192a431b00b7c7646033e507417f50ccf4

- Adds fix-color patch for eli

PKGBUILD +11 -4

diff --git a/PKGBUILD b/PKGBUILD
index cc4386f..c65ed52 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,7 +13,7 @@
 
 pkgname=go
 epoch=2
-pkgver=1.15.2
+pkgver=1.15.3
 pkgrel=1
 pkgdesc='Core compiler tools for the Go programming language'
 arch=(x86_64)
@@ -23,10 +23,17 @@ makedepends=(git go perl)
 replaces=(go-pie)
 provides=(go-pie)
 options=(!strip staticlibs)
-source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz{,.asc})
+source=(https://storage.googleapis.com/golang/go$pkgver.src.tar.gz{,.asc}
+        "fix-color.patch::https://github.com/golang/go/commit/29634436fd741a7c685bf8f242b6fd62f093d1ad.patch")
 validpgpkeys=('EB4C1BFD4F042F6DDDCCEC917721F63BD38B4796')
-sha256sums=('28bf9d0bcde251011caae230a4a05d917b172ea203f2a62f2c2f9533589d4b4d'
-            'SKIP')
+sha256sums=('896a602570e54c8cdfc2c1348abd4ffd1016758d0bd086ccd9787dbfc9b64888'
+            'SKIP'
+            'f6bf4c18e4395bdd4925b1f15a713fa3daca0a28123d6c20d51234d7ce2d3357')
+
+prepare() {
+    cd "${pkgname}"
+    patch -Np1 < "$srcdir/fix-color.patch"
+}
 
 build() {
   export GOARCH=amd64