[arch-commits] Commit in bettercap/repos/community-x86_64 (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Mon Nov 19 22:52:44 UTC 2018


    Date: Monday, November 19, 2018 @ 22:52:42
  Author: anthraxx
Revision: 408979

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   73 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 37 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-19 22:52:31 UTC (rev 408978)
+++ PKGBUILD	2018-11-19 22:52:42 UTC (rev 408979)
@@ -1,36 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
-
-pkgname=bettercap
-pkgver=2.10
-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')
-options=('!emptydirs')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/bettercap/bettercap/archive/v${pkgver}.tar.gz)
-sha512sums=('ff431277e6478509ee9424affc924044835942fd3ba7cfb85967b48d91b69829b2a0db5008898794fd3f20e1968ae896048d75bdc70d52cc46dde1df6d3997d2')
-
-prepare(){
-  export GOPATH="${srcdir}/go"
-  mkdir -p go/src/github.com/bettercap
-  ln -rTsf ${pkgname}-${pkgver} go/src/github.com/bettercap/bettercap
-}
-
-build() {
-  cd go/src/github.com/bettercap/bettercap
-  export GOPATH="${srcdir}/go"
-  dep ensure
-  go build -o bettercap
-}
-
-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 408978, bettercap/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-11-19 22:52:42 UTC (rev 408979)
@@ -0,0 +1,37 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
+
+pkgname=bettercap
+pkgver=2.11
+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')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/bettercap/bettercap/archive/v${pkgver}.tar.gz)
+sha512sums=('38d8413996e9b6988e446209c64e2008b05fc55150ba35144f6fe770751f08f169f768942b5179a122da51eb09978ca341edba326cbfa36c34b46cadd3adef9c')
+
+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
+  go build -o bettercap
+}
+
+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:


More information about the arch-commits mailing list