Date: Saturday, November 16, 2019 @ 11:32:04
  Author: shibumi
Revision: 529519

archrelease: copy trunk to community-x86_64

Added:
  bettercap/repos/community-x86_64/PKGBUILD
    (from rev 529518, bettercap/trunk/PKGBUILD)
Deleted:
  bettercap/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   71 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 33 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2019-11-16 11:31:54 UTC (rev 529518)
+++ PKGBUILD    2019-11-16 11:32:04 UTC (rev 529519)
@@ -1,38 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
-
-pkgname=bettercap
-pkgver=2.25
-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' 'dep')
-optdepends=('bettercap-caplets: scripts (caplets) and proxy modules')
-options=('!emptydirs')
-source=(https://github.com/bettercap/bettercap/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('94f7be062891bbb6b16c3008cc435aa49b5b0facdf0765c401448b6ce30bf420061d6072231d1b5e41b2baf943fdf3f3069b613f941bdb2298375405486ae5e5')
-
-prepare() {
-  export GOPATH="${srcdir}/go"
-  mkdir -p go/src/github.com/bettercap
-  ln -rTsf ${pkgname}-${pkgver} go/src/github.com/bettercap/bettercap
-  sed -E "s|(go build)|\\1 -ldflags '-linkmode external -extldflags 
\"${LDFLAGS}\"'|" -i ${pkgname}-${pkgver}/Makefile
-}
-
-build() {
-  cd go/src/github.com/bettercap/bettercap
-  export GOPATH="${srcdir}/go"
-  dep ensure
-  make build
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  install -Dm 755 bettercap -t "${pkgdir}/usr/bin"
-  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-# vim: ts=2 sw=2 et:

Copied: bettercap/repos/community-x86_64/PKGBUILD (from rev 529518, 
bettercap/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2019-11-16 11:32:04 UTC (rev 529519)
@@ -0,0 +1,33 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
+
+pkgname=bettercap
+pkgver=2.26.1
+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')
+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')
+
+prepare() {
+  export GO11MODULE=on
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  go build -trimpath -ldflags "-extldflags ${LDFLAGS}"
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm 755 bettercap -t "${pkgdir}/usr/bin"
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to