# Maintainer: Yigit Sever pkgname=vulnx pkgver=2.0.0 pkgrel=1 pkgdesc="Modern CLI for exploring vulnerability data with powerful search, filtering, and analysis capabilities" arch=('x86_64') url="https://github.com/projectdiscovery/vulnx" license=('MIT') makedepends=('go') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('25cac6aeadcc8e5834831ec7a4addc26939c2ae0fab44f1e815b3c26b4e81492') prepare() { cd "${pkgname}-${pkgver}" mkdir -p build/ } build() { cd "${pkgname}-${pkgver}" export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" go build -o build ./cmd/... } package() { cd "${pkgname}-${pkgver}" install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }