[arch-commits] Commit in opensmtpd-filter-rspamd/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Jul 5 14:35:41 UTC 2020


    Date: Sunday, July 5, 2020 @ 14:35:40
  Author: foxboron
Revision: 657841

upgpkg: opensmtpd-filter-rspamd 0.1.6-2

Updated to go package guidelines

Modified:
  opensmtpd-filter-rspamd/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:35:16 UTC (rev 657840)
+++ PKGBUILD	2020-07-05 14:35:40 UTC (rev 657841)
@@ -3,22 +3,24 @@
 _pkg=filter-rspamd
 pkgname=opensmtpd-${_pkg}
 pkgver=0.1.6
-pkgrel=1
+pkgrel=2
 pkgdesc="OpenSMTPD filter integration for Rspamd"
 arch=(x86_64)
 url=https://github.com/poolpOrg/filter-rspamd
 license=(ISC)
 depends=(glibc rspamd)
-makedepends=(go-pie)
+makedepends=(go)
 source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
 sha512sums=('d452143902c713f2d277651e8322b6da00d8531f32b8c78f7c945b4e9302083df2ad419614ed2a9d4d31270d8edd0c4e9ac8a11c9f470fcf8364347e101ac456')
 
 build() {
   cd ${_pkg}-${pkgver}
-  go build -v \
-    -trimpath \
-    -ldflags "-extldflags $LDFLAGS" \
-    -o ${_pkg}
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  go build -v -o ${_pkg}
 }
 
 package() {


More information about the arch-commits mailing list