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

Morten Linderud foxboron at archlinux.org
Sun Jul 5 15:38:41 UTC 2020


    Date: Sunday, July 5, 2020 @ 15:38:40
  Author: foxboron
Revision: 657873

upgpkg: evilginx 2.3.0-6

Updated with go package guidelines

Modified:
  evilginx/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 15:37:40 UTC (rev 657872)
+++ PKGBUILD	2020-07-05 15:38:40 UTC (rev 657873)
@@ -4,12 +4,12 @@
 pkgname=evilginx
 pkgdesc='Man-in-the-middle attack framework used for phishing login credentials'
 pkgver=2.3.0
-pkgrel=5
+pkgrel=6
 url='https://github.com/kgretzky/evilginx2'
 license=('GPL3')
 arch=('x86_64')
 depends=('glibc')
-makedepends=('go-pie' 'git' 'dep')
+makedepends=('go' 'git' 'dep')
 source=(https://github.com/kgretzky/evilginx2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
 sha512sums=('385926bbd0a37568a4fa9fc9e500bd622a14209ecf0d60ff8b93e6e45b3d59b0649fe9f0c5571f6eade58e025d25a84f24bce9b64a63163939eabdea937bac69')
 
@@ -23,10 +23,12 @@
   cd go/src/github.com/kgretzky/evilginx2
   export GOPATH="${srcdir}/go"
   dep ensure -v
-  go build -v \
-    -trimpath \
-    -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
-    -o ./bin/evilginx main.go
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  go build -v -o ./bin/evilginx main.go
 }
 
 package() {


More information about the arch-commits mailing list