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

Levente Polyak anthraxx at archlinux.org
Sun Apr 12 14:08:50 UTC 2020


    Date: Sunday, April 12, 2020 @ 14:08:49
  Author: anthraxx
Revision: 613406

upgpkg: bettercap 2.27-1

Modified:
  bettercap/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-12 12:36:49 UTC (rev 613405)
+++ PKGBUILD	2020-04-12 14:08:49 UTC (rev 613406)
@@ -2,26 +2,29 @@
 # Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
 
 pkgname=bettercap
-pkgver=2.26.1
-pkgrel=2
+pkgver=2.27
+pkgrel=1
 pkgdesc='Swiss army knife for network attacks and monitoring'
 url='https://github.com/bettercap/bettercap'
 arch=('x86_64')
 license=('GPL3')
 depends=('libpcap' 'libnetfilter_queue' 'iproute2' 'glibc' 'libnfnetlink')
-makedepends=('go-pie' 'git')
+makedepends=('go' 'git')
 optdepends=('bettercap-caplets: scripts (caplets) and proxy modules')
 options=('!emptydirs')
 source=(https://github.com/bettercap/bettercap/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('e935fce4213e580a6768fe507bea1275360930552559905e88e6b970f6da3daec646a8fbf877c60d65fe5070ce79073136dc7679b2e52511d93bafe83f909eff')
+sha512sums=('2ddafba6a40a8e5d634422c019f8e52355da8118dbd9cc8a9431a229f3a5faa2b1ab44f134636960c1c6715e0a192bbc799090a9dfd372803e2e34e348526673')
+b2sums=('1660ccd86f68f2fd65700639dc2fc6f2e1d623e65ac9d99f41c3e205f6cb7cd11965295e5c6ad02471dda803adb6a671af2ac4bd4de96478bb587979e548c3e8')
 
-prepare() {
-  export GO11MODULE=on
-}
-
 build() {
   cd "${pkgname}-${pkgver}"
-  go build -trimpath -ldflags "-extldflags ${LDFLAGS}"
+  export GO11MODULE=on
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath"
+  go build
 }
 
 package() {



More information about the arch-commits mailing list