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

Levente Polyak anthraxx at archlinux.org
Wed Mar 27 20:26:23 UTC 2019


    Date: Wednesday, March 27, 2019 @ 20:26:22
  Author: anthraxx
Revision: 444979

archrelease: copy trunk to community-x86_64

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

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

Copied: bettercap/repos/community-x86_64/PKGBUILD (from rev 444978, bettercap/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-03-27 20:26:22 UTC (rev 444979)
@@ -0,0 +1,38 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
+
+pkgname=bettercap
+pkgver=2.21.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' '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=('7afa5a4e43c13f6ce1e744665815518f07b528279e06ca24fd082515c535a96d39e04720051d633391454db994fb333e8a0ad2543e3e21c762e76982a3aebe69')
+
+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:



More information about the arch-commits mailing list