summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ff55b66503dcf2c92b1373ba817f5c0504cef7e (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
# Maintainer: Dušan Simić <dusan.simic1810@gmail.com>

pkgname=pillager
pkgver=0.8.1
_commit=eb653b7495155f14f51012e25556b3877f7ffd6d
pkgrel=1
pkgdesc='Pillage filesystems for sensitive information with Go'
arch=(x86_64)
url=https://github.com/brittonhayes/pillager
license=(MIT)
makedepends=(git go)
source=("git+$url.git#commit=$_commit")
md5sums=(SKIP)

prepare() {
	cd "$pkgname"
	go mod download
	go mod tidy
}

build() {
	cd "$pkgname"
	go build -v -o bin/pillager cmd/pillager/main.go
}

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