summaryrefslogtreecommitdiffstats
path: root/puredns/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2024-10-11 14:13:21 +0200
committerYigit Sever2024-10-11 14:13:21 +0200
commitcb35803ef8a358f2bbf91888b32b32a64e41fbde (patch)
treec095a0b791beec445a97636dd58f0cdac36f07de /puredns/PKGBUILD
parentd95b6a71b601dceb3681fca0f57f9efe4ccb9fe2 (diff)
parent9876f593ecf4ef4a6c1e38d45d5e7364bf16b50d (diff)
downloadpackages-cb35803ef8a358f2bbf91888b32b32a64e41fbde.tar.gz
packages-cb35803ef8a358f2bbf91888b32b32a64e41fbde.tar.bz2
packages-cb35803ef8a358f2bbf91888b32b32a64e41fbde.zip
Add 'puredns/' from commit '9876f593ecf4ef4a6c1e38d45d5e7364bf16b50d'
git-subtree-dir: puredns git-subtree-mainline: d95b6a71b601dceb3681fca0f57f9efe4ccb9fe2 git-subtree-split: 9876f593ecf4ef4a6c1e38d45d5e7364bf16b50d
Diffstat (limited to 'puredns/PKGBUILD')
-rw-r--r--puredns/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/puredns/PKGBUILD b/puredns/PKGBUILD
new file mode 100644
index 0000000..4812249
--- /dev/null
+++ b/puredns/PKGBUILD
@@ -0,0 +1,33 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=puredns
4pkgver=2.1.1
5pkgrel=1
6pkgdesc="A fast domain resolver and subdomain bruteforcing tool that can accurately filter out wildcard subdomains and DNS poisoned entries"
7arch=('x86_64')
8url="https://github.com/d3mondev/puredns"
9license=('GPL-3.0-or-later')
10makedepends=('go')
11depends=('massdns')
12source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
13sha256sums=('cff6466a422ab7db00a8277b32159cc6c416980f0921a5a7c72c43255d233c0f')
14
15prepare() {
16 cd "${pkgname}-${pkgver}"
17 mkdir -p build/
18}
19
20build() {
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 .
28}
29
30package() {
31 cd "${pkgname}-${pkgver}"
32 install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
33}