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