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