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

Levente Polyak anthraxx at archlinux.org
Tue Mar 16 23:32:23 UTC 2021


    Date: Tuesday, March 16, 2021 @ 23:32:23
  Author: anthraxx
Revision: 892525

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   84 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 42 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-16 23:32:22 UTC (rev 892524)
+++ PKGBUILD	2021-03-16 23:32:23 UTC (rev 892525)
@@ -1,42 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
-
-pkgname=bettercap
-pkgver=2.30
-pkgrel=1
-pkgdesc='Swiss army knife for network attacks and monitoring'
-url='https://github.com/bettercap/bettercap'
-arch=('x86_64')
-license=('GPL3')
-depends=('glibc' 'libpcap' 'libpcap.so' 'libnetfilter_queue' 'iproute2' 'libnfnetlink' 'libusb' 'libusb-1.0.so')
-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=('134b023783a1b15be76eaa045dae19b27272af12de378b39f066c06ae6e849ffafcdc415b420b7a69e50e202497502bfc7f803cddee1373f0ad710e964e6013a')
-b2sums=('7dd8e6b0285c79cdc7d3e37a81759202819ff8f1b3bd10f1c9c77de6bebcd97b64b70376157821b1a4849a8a51df8774bd3e0281aba33fe9cf9a95edcd10861e')
-
-prepare() {
-  cd ${pkgname}-${pkgver}
-  find . -type f -exec sed 's|/usr/local|/usr|g' -i {} +
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  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() {
-  cd ${pkgname}-${pkgver}
-  install -Dm 755 bettercap -t "${pkgdir}/usr/bin"
-  install -Dm 644 bettercap.service -t "${pkgdir}/usr/lib/systemd/system"
-  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 892523, bettercap/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-03-16 23:32:23 UTC (rev 892525)
@@ -0,0 +1,42 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
+
+pkgname=bettercap
+pkgver=2.30.2
+pkgrel=1
+pkgdesc='Swiss army knife for network attacks and monitoring'
+url='https://github.com/bettercap/bettercap'
+arch=('x86_64')
+license=('GPL3')
+depends=('glibc' 'libpcap' 'libpcap.so' 'libnetfilter_queue' 'iproute2' 'libnfnetlink' 'libusb' 'libusb-1.0.so')
+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=('1e605e703dda7a74aae88581b0686f8f07d8d312ccb143f3cf725338b555797f8956ea2c0e1fadca309ff09a4c6af7e656f7a95dd73df780ec4cc75f388bd1d7')
+b2sums=('264d6df36289328bed907c76f8ca2655263b434b482e8ef308a8fa3c79b768038f9786529767ab8c30dd5ad318a1b5384eb5432639c0c16a09c87a2b3c2a7cde')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  find . -type f -exec sed 's|/usr/local|/usr|g' -i {} +
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  export GO11MODULE=on
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=readonly -modcacherw"
+  go build
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm 755 bettercap -t "${pkgdir}/usr/bin"
+  install -Dm 644 bettercap.service -t "${pkgdir}/usr/lib/systemd/system"
+  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