summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2018-11-19 23:57:46 +0100
committeranthraxx2018-11-19 23:57:46 +0100
commitc16c5fb75d8911a56d36f9225cb495fd21520c3d (patch)
treeb77565b1b131d60c610cd74b257664db077a71ef
parentbfcc4ca4bf5b8a9018128f35e79d8ea8724954ed (diff)
downloadaur-c16c5fb75d8911a56d36f9225cb495fd21520c3d.tar.gz
upgpkg: bettercap-git 2.11.1313.8cf3e65-1 (enable ext ldflags)
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD21
2 files changed, 17 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7a19050ca52..968ab07bf86 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,18 @@
pkgbase = bettercap-git
pkgdesc = Swiss army knife for network attacks and monitoring
- pkgver = 2.1.849.b63c20b
+ pkgver = 2.11.1313.8cf3e65
pkgrel = 1
url = https://github.com/bettercap/bettercap
arch = x86_64
license = GPL3
makedepends = go-pie
makedepends = git
+ makedepends = dep
depends = libpcap
+ depends = libnetfilter_queue
+ depends = iproute2
+ depends = glibc
+ depends = libnfnetlink
provides = bettercap
conflicts = bettercap
source = bettercap-git::git+https://github.com/bettercap/bettercap
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}"
}