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

Levente Polyak anthraxx at archlinux.org
Sat Apr 25 16:10:56 UTC 2020


    Date: Saturday, April 25, 2020 @ 16:10:56
  Author: anthraxx
Revision: 620921

upgpkg: bettercap 2.27.1-2: fix caplets default path

Fixes FS#62820

Modified:
  bettercap/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-25 16:10:54 UTC (rev 620920)
+++ PKGBUILD	2020-04-25 16:10:56 UTC (rev 620921)
@@ -3,7 +3,7 @@
 
 pkgname=bettercap
 pkgver=2.27.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Swiss army knife for network attacks and monitoring'
 url='https://github.com/bettercap/bettercap'
 arch=('x86_64')
@@ -16,8 +16,13 @@
 sha512sums=('157386a9410056667e391826fe04012f934452dd66a9bc3a6d4eee1654827923a7ad987cff07477b30a56476fe92dc1eadf7db7c4fd6bbf2dc2bd62e825e1835')
 b2sums=('f10074523407e23a6f504a7bba8c7aa63a81890c8a0dc1cfc0d9ea336a7606e7b73e301c3167149d8bbf9a01addc59e5ab047300cc7594eb4b7e929ff2f0cd8c')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  find . -type f -exec sed -i'' 's|/usr/local|/usr|g' {} +
+}
+
 build() {
-  cd "${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
   export GO11MODULE=on
   export CGO_LDFLAGS="${LDFLAGS}"
   export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -30,6 +35,7 @@
 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}"
 }
 



More information about the arch-commits mailing list