[arch-commits] Commit in easyjson/repos/community-x86_64 (PKGBUILD PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Jul 5 15:47:00 UTC 2020


    Date: Sunday, July 5, 2020 @ 15:47:00
  Author: foxboron
Revision: 657878

archrelease: copy trunk to community-x86_64

Added:
  easyjson/repos/community-x86_64/PKGBUILD
    (from rev 657877, easyjson/trunk/PKGBUILD)
Deleted:
  easyjson/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   78 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 45 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 15:46:52 UTC (rev 657877)
+++ PKGBUILD	2020-07-05 15:47:00 UTC (rev 657878)
@@ -1,33 +0,0 @@
-# Maintainer: Anatol Pomozov
-
-pkgname=easyjson
-pkgver=0.7.1
-pkgrel=1
-pkgdesc='Fast JSON serializer for golang'
-arch=(x86_64)
-url='https://github.com/mailru/easyjson'
-license=(MIT)
-depends=(glibc)
-makedepends=(go-pie git)
-source=(easyjson-$pkgver.zip::https://github.com/mailru/easyjson/archive/v$pkgver.zip)
-sha512sums=('2f0b9f95fc88028b8858348cfd9edba18997d4c6aa877e41f5bf63999e62f784bf57db73fae738639728fcf2e7195d6a798dbc2efcb5c1fc6c2edb0961eb517f')
-
-prepare() {
-  cd $srcdir/easyjson-$pkgver
-  sed -i 's/golint /#golint /g' Makefile
-}
-
-build() {
-  cd $srcdir/easyjson-$pkgver
-  make build
-}
-
-check() {
-  cd $srcdir/easyjson-$pkgver
-  make test
-}
-
-package() {
-  cd $srcdir/easyjson-$pkgver
-  install -Dm755 bin/easyjson $pkgdir/usr/bin/easyjson
-}

Copied: easyjson/repos/community-x86_64/PKGBUILD (from rev 657877, easyjson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-05 15:47:00 UTC (rev 657878)
@@ -0,0 +1,45 @@
+# Maintainer: Anatol Pomozov
+
+pkgname=easyjson
+pkgver=0.7.1
+pkgrel=2
+pkgdesc='Fast JSON serializer for golang'
+arch=(x86_64)
+url='https://github.com/mailru/easyjson'
+license=(MIT)
+depends=(glibc)
+makedepends=(go git)
+source=(easyjson-$pkgver.zip::https://github.com/mailru/easyjson/archive/v$pkgver.zip)
+sha512sums=('2f0b9f95fc88028b8858348cfd9edba18997d4c6aa877e41f5bf63999e62f784bf57db73fae738639728fcf2e7195d6a798dbc2efcb5c1fc6c2edb0961eb517f')
+
+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
+}
+
+package() {
+  cd $srcdir/easyjson-$pkgver
+  install -Dm755 bin/easyjson $pkgdir/usr/bin/easyjson
+}



More information about the arch-commits mailing list