summaryrefslogtreecommitdiffstats
path: root/vulnx/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'vulnx/PKGBUILD')
-rw-r--r--vulnx/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/vulnx/PKGBUILD b/vulnx/PKGBUILD
new file mode 100644
index 0000000..e128c35
--- /dev/null
+++ b/vulnx/PKGBUILD
@@ -0,0 +1,33 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=vulnx
4pkgver=2.0.1
5pkgrel=1
6pkgdesc="Modern CLI for exploring vulnerability data with powerful search, filtering, and analysis capabilities"
7arch=('x86_64')
8url="https://github.com/projectdiscovery/vulnx"
9license=('MIT')
10makedepends=('go')
11source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
12sha256sums=('101dcbc93c412b1acfb4b8149660488f42d5c5e4d1b3ff1fd8be3f41c787a4dc')
13
14prepare() {
15 cd "${pkgname}-${pkgver}"
16 mkdir -p build/
17}
18
19build() {
20 cd "${pkgname}-${pkgver}"
21 export CGO_CPPFLAGS="${CPPFLAGS}"
22 export CGO_CFLAGS="${CFLAGS}"
23 export CGO_CXXFLAGS="${CXXFLAGS}"
24 export CGO_LDFLAGS="${LDFLAGS}"
25 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
26 go build -o build ./cmd/...
27}
28
29package() {
30 cd "${pkgname}-${pkgver}"
31 install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
32 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
33}