diff options
-rw-r--r-- | vulnx/.SRCINFO | 12 | ||||
-rw-r--r-- | vulnx/PKGBUILD | 34 |
2 files changed, 46 insertions, 0 deletions
diff --git a/vulnx/.SRCINFO b/vulnx/.SRCINFO new file mode 100644 index 0000000..9d0250c --- /dev/null +++ b/vulnx/.SRCINFO | |||
@@ -0,0 +1,12 @@ | |||
1 | pkgbase = vulnx | ||
2 | pkgdesc = Modern CLI for exploring vulnerability data with powerful search, filtering, and analysis capabilities | ||
3 | pkgver = 1.0.0 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/projectdiscovery/cvemap | ||
6 | arch = x86_64 | ||
7 | license = MIT | ||
8 | makedepends = go | ||
9 | source = vulnx-1.0.0.tar.gz::https://github.com/projectdiscovery/cvemap/archive/refs/tags/v1.0.0.tar.gz | ||
10 | sha256sums = 76146c23e94493106c9d9bc6f039b33e182415d0a35e5adf43b83f1712cf8d35 | ||
11 | |||
12 | pkgname = vulnx | ||
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 | |||
3 | pkgname=vulnx | ||
4 | _pkgname=cvemap | ||
5 | pkgver=1.0.0 | ||
6 | pkgrel=1 | ||
7 | pkgdesc="Modern CLI for exploring vulnerability data with powerful search, filtering, and analysis capabilities" | ||
8 | arch=('x86_64') | ||
9 | url="https://github.com/projectdiscovery/cvemap" | ||
10 | license=('MIT') | ||
11 | makedepends=('go') | ||
12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | ||
13 | sha256sums=('76146c23e94493106c9d9bc6f039b33e182415d0a35e5adf43b83f1712cf8d35') | ||
14 | |||
15 | prepare() { | ||
16 | cd "${_pkgname}-${pkgver}" | ||
17 | mkdir -p build/ | ||
18 | } | ||
19 | |||
20 | build() { | ||
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 | |||
30 | package() { | ||
31 | cd "${_pkgname}-${pkgver}" | ||
32 | install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname | ||
33 | install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
34 | } | ||