diff options
author | Benoît Allard | 2021-02-28 18:25:48 +0100 |
---|---|---|
committer | Benoît Allard | 2021-02-28 18:25:48 +0100 |
commit | c8328e57ddbedcaeff348172f6a06e9ef4630211 (patch) | |
tree | d0874ce99c6effc3e6bd8183260eb98a89f24c0b | |
download | aur-c8328e57ddbedcaeff348172f6a06e9ef4630211.tar.gz |
pwngrid-1.10.3
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ab08f2d20b69 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = pwngrid + pkgdesc = This is the source code of the API server for http://pwnagotchi.ai + pkgver = 1.10.3 + pkgrel = 1 + url = https://github.com/evilsocket/pwngrid + arch = x86_64 + license = GPL3 + depends = libpcap + source = pwngrid-1.10.3.tar.gz::https://github.com/evilsocket/pwngrid/archive/v1.10.3.tar.gz + md5sums = 250eccce3cfe5745fe1d4aac7e75bb5b + +pkgname = pwngrid + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a6a7feb02a57 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Benoît Allard <benoit.allard@gnx.de> +pkgname=pwngrid +pkgver=1.10.3 +pkgrel=1 +pkgdesc="This is the source code of the API server for http://pwnagotchi.ai" +arch=('x86_64') +url="https://github.com/evilsocket/pwngrid" +license=('GPL3') +depends=('libpcap') +source=("$pkgname-$pkgver.tar.gz::https://github.com/evilsocket/${pkgname}/archive/v$pkgver.tar.gz") +md5sums=('250eccce3cfe5745fe1d4aac7e75bb5b') + +prepare(){ + cd $pkgname-$pkgver + mkdir -p build/ +} + +build() { + cd $pkgname-$pkgver + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o build/$pkgname cmd/pwngrid/*.go +} + +package() { + cd $pkgname-$pkgver + install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname + install -Dm644 pwngrid.service "$pkgdir"/usr/lib/systemd/system/pwngrid.service + install -Dm644 env.example "$pkgdir"/etc/pwngrid/pwngrid.conf +} |