summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index eacd0944706..a8fd94eed58 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=bettercap-git
-pkgver=2.1.849.b63c20b
+pkgver=2.11.1313.8cf3e65
pkgrel=1
pkgdesc='Swiss army knife for network attacks and monitoring'
url='https://github.com/bettercap/bettercap'
arch=('x86_64')
license=('GPL3')
-depends=('libpcap')
-makedepends=('go-pie' 'git')
+depends=('libpcap' 'libnetfilter_queue' 'iproute2' 'glibc' 'libnfnetlink')
+makedepends=('go-pie' 'git' 'dep')
provides=('bettercap')
conflicts=('bettercap')
source=(${pkgname}::git+https://github.com/bettercap/bettercap)
@@ -21,21 +21,22 @@ pkgver() {
}
prepare(){
- export GOPATH="${srcdir}"
- mkdir -p src/github.com/bettercap
- ln -rTsf ${pkgname} src/github.com/bettercap/bettercap
+ export GOPATH="${srcdir}/go"
+ mkdir -p go/src/github.com/bettercap
+ ln -rTsf ${pkgname} go/src/github.com/bettercap/bettercap
+ sed -E "s|(go build)|\\1 -ldflags -linkmode external -extldflags \"${LDFLAGS}\"|" -i ${pkgname}/Makefile
}
build() {
- cd src/github.com/bettercap/bettercap
- export GOPATH="${srcdir}"
- go get -v
+ cd go/src/github.com/bettercap/bettercap
+ export GOPATH="${srcdir}/go"
+ dep ensure
go build -o bettercap
}
package() {
cd ${pkgname}
- install -Dm 755 ../bin/bettercap -t "${pkgdir}/usr/bin"
+ install -Dm 755 bettercap -t "${pkgdir}/usr/bin"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}