diff options
author | Tony Lambiris | 2019-07-29 14:04:21 -0400 |
---|---|---|
committer | Tony Lambiris | 2019-07-29 14:04:21 -0400 |
commit | d6f5c38ee70890c3726cfe2edbeac40b1435daca (patch) | |
tree | 71401e7eba3f57ce71e155602e89a5cef7cc669d /PKGBUILD | |
parent | dc9148cf81db56541c102fa542207b7b2d7f073c (diff) | |
download | aur-d6f5c38ee70890c3726cfe2edbeac40b1435daca.tar.gz |
Fix command names
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -2,7 +2,7 @@ pkgname=netcap-git pkgver=v0.3.9.r106.g6bbb8d6 -pkgrel=1 +pkgrel=2 pkgdesc='A framework for secure and scalable network traffic analysis' url="https://github.com/dreadl0ck/netcap" arch=('x86_64') @@ -44,17 +44,15 @@ build() { -ldflags "-s -w" \ -gcflags="all=-trimpath=${GOPATH}/src" \ -asmflags="all=-trimpath=${GOPATH}/src" \ - -o "build/${i//\//.}" "./$i" + -o "build/net.$(basename $i)" "./$i" done } package() { cd "${srcdir}/go/src/github.com/dreadl0ck/netcap" - for i in build/cmd.*; do - msg2 "Installing $i..." - - install -Dm755 "$i" "${pkgdir}/usr/bin/$(basename $i)" - done install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + cd build + find . -type f -name 'net.*' -exec install -Dm755 "{}" "${pkgdir}/usr/bin/{}" \; } |