[arch-commits] Commit in easyjson/trunk (PKGBUILD)

2020-08-10 Thread Felix Yan via arch-commits
Date: Monday, August 10, 2020 @ 16:53:14
  Author: felixonmars
Revision: 673889

upgpkg: easyjson 0.7.3-1

Modified:
  easyjson/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-08-10 16:53:01 UTC (rev 673888)
+++ PKGBUILD2020-08-10 16:53:14 UTC (rev 673889)
@@ -1,8 +1,8 @@
 # Maintainer: Anatol Pomozov
 
 pkgname=easyjson
-pkgver=0.7.1
-pkgrel=2
+pkgver=0.7.3
+pkgrel=1
 pkgdesc='Fast JSON serializer for golang'
 arch=(x86_64)
 url='https://github.com/mailru/easyjson'
@@ -10,7 +10,7 @@
 depends=(glibc)
 makedepends=(go git)
 
source=(easyjson-$pkgver.zip::https://github.com/mailru/easyjson/archive/v$pkgver.zip)
-sha512sums=('2f0b9f95fc88028b8858348cfd9edba18997d4c6aa877e41f5bf63999e62f784bf57db73fae738639728fcf2e7195d6a798dbc2efcb5c1fc6c2edb0961eb517f')
+sha512sums=('724ddac266f0531a700c859534a89381c2de058f80684570c5753558e0d51c7a8fbb72d3dc3bdc71bbed1b6af56fd3f458eb916fe5ddb6c84b2d3d93cff8b1f2')
 
 prepare() {
   cd $srcdir/easyjson-$pkgver


[arch-commits] Commit in easyjson/trunk (PKGBUILD)

2020-07-05 Thread Morten Linderud via arch-commits
Date: Sunday, July 5, 2020 @ 15:46:52
  Author: foxboron
Revision: 657877

upgpkg: easyjson 0.7.1-2

Use the new go package guidelines

Remove `-i` from "go build" because it will try write shared files to a 
root-owned directory.

Modified:
  easyjson/trunk/PKGBUILD

--+
 PKGBUILD |   14 +-
 1 file changed, 13 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-05 15:46:09 UTC (rev 657876)
+++ PKGBUILD2020-07-05 15:46:52 UTC (rev 657877)
@@ -2,7 +2,7 @@
 
 pkgname=easyjson
 pkgver=0.7.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Fast JSON serializer for golang'
 arch=(x86_64)
 url='https://github.com/mailru/easyjson'
@@ -15,15 +15,27 @@
 prepare() {
   cd $srcdir/easyjson-$pkgver
   sed -i 's/golint /#golint /g' Makefile
+  sed -i 's/-i//g' Makefile
 }
 
 build() {
   cd $srcdir/easyjson-$pkgver
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
   make build
 }
 
 check() {
   cd $srcdir/easyjson-$pkgver
+  # The tests rebuild the binary, this time without flags
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
   make test
 }
 


[arch-commits] Commit in easyjson/trunk (PKGBUILD)

2020-06-02 Thread Anatol Pomozov via arch-commits
Date: Tuesday, June 2, 2020 @ 22:38:31
  Author: anatolik
Revision: 638123

Use go package instead of go-pie

Modified:
  easyjson/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-06-02 21:59:26 UTC (rev 638122)
+++ PKGBUILD2020-06-02 22:38:31 UTC (rev 638123)
@@ -8,7 +8,7 @@
 url='https://github.com/mailru/easyjson'
 license=(MIT)
 depends=(glibc)
-makedepends=(go-pie git)
+makedepends=(go git)
 
source=(easyjson-$pkgver.zip::https://github.com/mailru/easyjson/archive/v$pkgver.zip)
 
sha512sums=('2f0b9f95fc88028b8858348cfd9edba18997d4c6aa877e41f5bf63999e62f784bf57db73fae738639728fcf2e7195d6a798dbc2efcb5c1fc6c2edb0961eb517f')
 


[arch-commits] Commit in easyjson/trunk (PKGBUILD)

2020-03-15 Thread Felix Yan via arch-commits
Date: Sunday, March 15, 2020 @ 22:08:11
  Author: felixonmars
Revision: 598687

upgpkg: easyjson 0.7.1-1

Modified:
  easyjson/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-03-15 22:07:47 UTC (rev 598686)
+++ PKGBUILD2020-03-15 22:08:11 UTC (rev 598687)
@@ -1,8 +1,8 @@
 # Maintainer: Anatol Pomozov
 
 pkgname=easyjson
-pkgver=0.7.0
-pkgrel=2
+pkgver=0.7.1
+pkgrel=1
 pkgdesc='Fast JSON serializer for golang'
 arch=(x86_64)
 url='https://github.com/mailru/easyjson'
@@ -10,7 +10,7 @@
 depends=(glibc)
 makedepends=(go-pie git)
 
source=(easyjson-$pkgver.zip::https://github.com/mailru/easyjson/archive/v$pkgver.zip)
-sha256sums=('6756189f9a5af990c87316398ab166b281da8df7dad0ad4d700834f19aa425cd')
+sha512sums=('2f0b9f95fc88028b8858348cfd9edba18997d4c6aa877e41f5bf63999e62f784bf57db73fae738639728fcf2e7195d6a798dbc2efcb5c1fc6c2edb0961eb517f')
 
 prepare() {
   cd $srcdir/easyjson-$pkgver


[arch-commits] Commit in easyjson/trunk (PKGBUILD)

2020-03-09 Thread Felix Yan via arch-commits
Date: Monday, March 9, 2020 @ 11:03:00
  Author: felixonmars
Revision: 592956

upgpkg: easyjson 0.7.0-2: rebuild with go 1.14

Modified:
  easyjson/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-03-09 11:01:41 UTC (rev 592955)
+++ PKGBUILD2020-03-09 11:03:00 UTC (rev 592956)
@@ -2,7 +2,7 @@
 
 pkgname=easyjson
 pkgver=0.7.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Fast JSON serializer for golang'
 arch=(x86_64)
 url='https://github.com/mailru/easyjson'