[arch-commits] Commit in matterbridge/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Sun Jul 5 14:48:55 UTC 2020
Date: Sunday, July 5, 2020 @ 14:48:55
Author: foxboron
Revision: 657851
upgpkg: matterbridge 1.17.5-2
Updated to current go package guidelines
Modified:
matterbridge/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-05 14:44:43 UTC (rev 657850)
+++ PKGBUILD 2020-07-05 14:48:55 UTC (rev 657851)
@@ -2,13 +2,13 @@
pkgname=matterbridge
pkgver=1.17.5
-pkgrel=1
+pkgrel=2
pkgdesc="Multi-protocols (IRC/XMPP/Mattermost/Slack/Matrix/etc) bridge"
arch=(x86_64)
url="https://github.com/42wim/matterbridge"
license=(Apache)
depends=(glibc)
-makedepends=(go-pie git)
+makedepends=(go git)
backup=(etc/matterbridge.toml)
source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz"
${pkgname}-${pkgver}.tar.gz.asc::"${url}/releases/download/v${pkgver}/v${pkgver}.tar.gz.asc"
@@ -25,7 +25,12 @@
build() {
cd ${pkgname}-${pkgver}
- go build -v -o ${pkgname} -trimpath -ldflags "-extldflags ${LDFLAGS}" .
+ 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 ${pkgname} .
}
package() {
More information about the arch-commits
mailing list