diff options
Diffstat (limited to 'vulnx/PKGBUILD')
| -rw-r--r-- | vulnx/PKGBUILD | 34 |
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 | |||
| 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 | } | ||
