-
Notifications
You must be signed in to change notification settings - Fork 90
/
PKGBUILD
39 lines (32 loc) · 1.02 KB
/
PKGBUILD
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
31
32
33
34
35
36
37
38
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=220
pkgname=operative-framework
pkgver=1.1
pkgrel=1
pkgdesc="OSINT investigation framework"
groups=('archstrike' 'archstrike-recon')
arch=('armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64')
url='https://github.com/graniet/operative-framework'
license=('Apache')
depends=('glibc')
makedepends=('git' 'go-pie')
source=("https://github.com/graniet/operative-framework/archive/${pkgver}.tar.gz")
sha512sums=('74240c515600bb941ad6e02a6d7f1f607842fe550c650d9859db6d41bc9d173cf6b95c0cc043706a767e5147996536696fb075ad6d7cf0d5d4275687b4719c91')
build() {
cd ${pkgname}-${pkgver}
if [ "$CARCH" == "x86_64" ]
then
export GOARCH=amd64
elif [ "$CARCH" == "aarch64" ]
then
export GOARCH=arm
fi
go get -d -v ./...
go build -v -o ${pkgname}
}
package() {
cd ${pkgname}-${pkgver}
install -Dm755 $pkgname "${pkgdir}/usr/bin/$pkgname"
install -Dm644 README.md "${pkgdir}/usr/share/${pkgname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}