[arch-commits] Commit in opensmtpd-filter-rspamd/repos/community-x86_64 (2 files)

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


    Date: Sunday, July 5, 2020 @ 14:35:48
  Author: foxboron
Revision: 657842

archrelease: copy trunk to community-x86_64

Added:
  opensmtpd-filter-rspamd/repos/community-x86_64/PKGBUILD
    (from rev 657841, opensmtpd-filter-rspamd/trunk/PKGBUILD)
Deleted:
  opensmtpd-filter-rspamd/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   60 +++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 31 insertions(+), 29 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:35:40 UTC (rev 657841)
+++ PKGBUILD	2020-07-05 14:35:48 UTC (rev 657842)
@@ -1,29 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=filter-rspamd
-pkgname=opensmtpd-${_pkg}
-pkgver=0.1.6
-pkgrel=1
-pkgdesc="OpenSMTPD filter integration for Rspamd"
-arch=(x86_64)
-url=https://github.com/poolpOrg/filter-rspamd
-license=(ISC)
-depends=(glibc rspamd)
-makedepends=(go-pie)
-source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('d452143902c713f2d277651e8322b6da00d8531f32b8c78f7c945b4e9302083df2ad419614ed2a9d4d31270d8edd0c4e9ac8a11c9f470fcf8364347e101ac456')
-
-build() {
-  cd ${_pkg}-${pkgver}
-  go build -v \
-    -trimpath \
-    -ldflags "-extldflags $LDFLAGS" \
-    -o ${_pkg}
-}
-
-package() {
-  cd ${_pkg}-$pkgver
-  install -D filter-rspamd -t "${pkgdir}"/usr/lib/smtpd/opensmtpd
-  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-  install -Dm644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname}/
-}

Copied: opensmtpd-filter-rspamd/repos/community-x86_64/PKGBUILD (from rev 657841, opensmtpd-filter-rspamd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-05 14:35:48 UTC (rev 657842)
@@ -0,0 +1,31 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=filter-rspamd
+pkgname=opensmtpd-${_pkg}
+pkgver=0.1.6
+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)
+source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('d452143902c713f2d277651e8322b6da00d8531f32b8c78f7c945b4e9302083df2ad419614ed2a9d4d31270d8edd0c4e9ac8a11c9f470fcf8364347e101ac456')
+
+build() {
+  cd ${_pkg}-${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"
+  go build -v -o ${_pkg}
+}
+
+package() {
+  cd ${_pkg}-$pkgver
+  install -D filter-rspamd -t "${pkgdir}"/usr/lib/smtpd/opensmtpd
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+  install -Dm644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname}/
+}


More information about the arch-commits mailing list