summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b73addeb92301f2c18635a03d47d5ce57901aa4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: WildboarG, mm62633482@gmail.com
_pkgname=fscan
pkgname=${_pkgname}-git
pkgver=1.8.2 
pkgrel=2
pkgdesc="Intranet scanning tool"
arch=('any')
url="https://github.com/shadow1ng/fscan"
license=('MIT')
provides=('fscan')
conflicts=('fscan')
makedepends=('git' 'go' 'upx')
depends=()
source=(
	"git+${url}.git"
)
sha256sums=('SKIP')

build() {
	cd "${_pkgname}"
	export GO111MODULE=on
    export GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
    go mod tidy
	go build -ldflags="-s -w " -o build .
}

package() {
	cd "$pkgname-$pkgver"
	install -Dm755 build/$pkgname "$pkgdir/usr/bin/$pkgname"
}