diff options
author | Yigit Sever | 2024-10-09 17:18:12 +0200 |
---|---|---|
committer | Yigit Sever | 2024-10-09 17:18:12 +0200 |
commit | 502fb14ab25e282634acdda5607cc285d0de64aa (patch) | |
tree | 0abf1e04867998d57334dd2106ee8cb0e4c85f0b /cvemap | |
parent | 907606145963b949d31df94bf8f55bb35982b5f7 (diff) | |
parent | 28273f776e8aa361c8cd5c9f5d2a487c4fa37e5b (diff) | |
download | packages-502fb14ab25e282634acdda5607cc285d0de64aa.tar.gz packages-502fb14ab25e282634acdda5607cc285d0de64aa.tar.bz2 packages-502fb14ab25e282634acdda5607cc285d0de64aa.zip |
Add 'cvemap/' from commit '28273f776e8aa361c8cd5c9f5d2a487c4fa37e5b'
git-subtree-dir: cvemap
git-subtree-mainline: 907606145963b949d31df94bf8f55bb35982b5f7
git-subtree-split: 28273f776e8aa361c8cd5c9f5d2a487c4fa37e5b
Diffstat (limited to 'cvemap')
-rw-r--r-- | cvemap/.SRCINFO | 12 | ||||
-rw-r--r-- | cvemap/PKGBUILD | 33 |
2 files changed, 45 insertions, 0 deletions
diff --git a/cvemap/.SRCINFO b/cvemap/.SRCINFO new file mode 100644 index 0000000..cc2187a --- /dev/null +++ b/cvemap/.SRCINFO | |||
@@ -0,0 +1,12 @@ | |||
1 | pkgbase = cvemap | ||
2 | pkgdesc = Navigate the CVE jungle with ease | ||
3 | pkgver = 0.0.7 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/projectdiscovery/cvemap | ||
6 | arch = x86_64 | ||
7 | license = MIT | ||
8 | makedepends = go | ||
9 | source = cvemap-0.0.7.tar.gz::https://github.com/projectdiscovery/cvemap/archive/refs/tags/v0.0.7.tar.gz | ||
10 | sha256sums = 4648b800c596e388a22922a04849f58f04bb5f73630cd8006c2756b3751b889b | ||
11 | |||
12 | pkgname = cvemap | ||
diff --git a/cvemap/PKGBUILD b/cvemap/PKGBUILD new file mode 100644 index 0000000..9f03f14 --- /dev/null +++ b/cvemap/PKGBUILD | |||
@@ -0,0 +1,33 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | |||
3 | pkgname=cvemap | ||
4 | pkgver=0.0.7 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="Navigate the CVE jungle with ease" | ||
7 | arch=('x86_64') | ||
8 | url="https://github.com/projectdiscovery/cvemap" | ||
9 | license=('MIT') | ||
10 | makedepends=('go') | ||
11 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | ||
12 | sha256sums=('4648b800c596e388a22922a04849f58f04bb5f73630cd8006c2756b3751b889b') | ||
13 | |||
14 | prepare() { | ||
15 | cd "${pkgname}-${pkgver}" | ||
16 | mkdir -p build/ | ||
17 | } | ||
18 | |||
19 | build() { | ||
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 | |||
29 | package() { | ||
30 | cd "${pkgname}-${pkgver}" | ||
31 | install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname | ||
32 | install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
33 | } | ||