Date: Friday, May 28, 2021 @ 15:25:02 Author: felixonmars Revision: 949926
archrelease: copy trunk to community-x86_64 Added: bettercap/repos/community-x86_64/PKGBUILD (from rev 949925, bettercap/trunk/PKGBUILD) Deleted: bettercap/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 84 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-05-28 15:24:39 UTC (rev 949925) +++ PKGBUILD 2021-05-28 15:25:02 UTC (rev 949926) @@ -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.31.0 -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=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('472c6a32f328c352e852f341053dcf02e0d2a14b0c4b4261aa212392848c049dd6980efff36b7ba677a09fccaf2780a6decc2bb661ac9eb41abedfcaf7694c2f') -b2sums=('734d1a5fd629fbc00acaff67038ee22cdc8bb8213007ea3b9c44627075274d7706045e4b9eb594e445c84fd8e1296f764ac22bd51cf30127833ac6458393c248') - -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: Copied: bettercap/repos/community-x86_64/PKGBUILD (from rev 949925, bettercap/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-05-28 15:25:02 UTC (rev 949926) @@ -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.31.1 +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=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('e053a7406ffee1958775b81c45f9278a30d6a9cccc1d578071c94b963e1fd37874a454739da62deaa218e6aa7524b55cbae793f09f171c97460713ff2cfc751f') +b2sums=('295a7d843bb95d6183cf8e918906d870b494d673859ffa2ac43c81e1d712d1cc09975e2c619dff936fa1ca1294732f02019c49977a1d8af0c47e1f07148f0ba6') + +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: