summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2024-10-09 17:17:15 +0200
committerYigit Sever2024-10-09 17:17:15 +0200
commit28273f776e8aa361c8cd5c9f5d2a487c4fa37e5b (patch)
tree454d6e313f2e79fc8c0f3563f7474493e5f7469d /PKGBUILD
downloadpackages-28273f776e8aa361c8cd5c9f5d2a487c4fa37e5b.tar.gz
packages-28273f776e8aa361c8cd5c9f5d2a487c4fa37e5b.tar.bz2
packages-28273f776e8aa361c8cd5c9f5d2a487c4fa37e5b.zip
Add to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..9f03f14
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=cvemap
4pkgver=0.0.7
5pkgrel=1
6pkgdesc="Navigate the CVE jungle with ease"
7arch=('x86_64')
8url="https://github.com/projectdiscovery/cvemap"
9license=('MIT')
10makedepends=('go')
11source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
12sha256sums=('4648b800c596e388a22922a04849f58f04bb5f73630cd8006c2756b3751b889b')
13
14prepare() {
15 cd "${pkgname}-${pkgver}"
16 mkdir -p build/
17}
18
19build() {
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
29package() {
30 cd "${pkgname}-${pkgver}"
31 install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
32 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
33}