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

Bruno Pagani archange at archlinux.org
Mon Jun 1 21:39:22 UTC 2020


    Date: Monday, June 1, 2020 @ 21:39:21
  Author: archange
Revision: 637919

upgpkg: gitea 1.11.6-1

Also update to new Go packaging guidelines

Modified:
  gitea/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-01 21:04:46 UTC (rev 637918)
+++ PKGBUILD	2020-06-01 21:39:21 UTC (rev 637919)
@@ -3,7 +3,7 @@
 # Contributor: Frederik Schwan <frederik dot schwan at linux dot com>
 
 pkgname=gitea
-pkgver=1.11.5
+pkgver=1.11.6
 pkgrel=1
 pkgdesc="Painless self-hosted Git service. Community managed fork of Gogs."
 arch=(x86_64)
@@ -21,7 +21,7 @@
   'sqlite: SQLite support'
 )
 backup=('etc/gitea/app.ini')
-_tag=0cb4aa8ee2abadc688902efbc5e2e512a402b2c5 # git rev-parse v${pkgver}
+_tag=e04839f012b2995cd2d0ba45d018c2266af9400b # git rev-parse v${pkgver}
 source=("git+https://github.com/go-gitea/gitea.git#tag=${_tag}?signed"
         gitea.tmpfiles
         gitea.service
@@ -57,8 +57,12 @@
 build() {
   cd ${pkgname}
   make generate
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
   LDFLAGS="-linkmode external -extldflags \"${LDFLAGS}\" -X \"code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea/\""
-  make EXTRA_GOFLAGS="-trimpath" TAGS="sqlite pam" build
+  make EXTRA_GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" TAGS="sqlite pam" build
 }
 
 package() {



More information about the arch-commits mailing list