summaryrefslogtreecommitdiffstats
path: root/dnsx/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2023-09-24 22:37:52 +0300
committerYigit Sever2023-09-24 22:37:52 +0300
commit456fb1177f7607295f25081e9edb7dcd7d384fd9 (patch)
tree95e4d4ca73f78ed1f8eb6e1421c0b0f9a5792009 /dnsx/PKGBUILD
parent22fa048868681f5b211bfc7097281662c6f6f2ef (diff)
parent02ec170becf7d9033e322efbaed1e14892372e7b (diff)
downloadpackages-456fb1177f7607295f25081e9edb7dcd7d384fd9.tar.gz
packages-456fb1177f7607295f25081e9edb7dcd7d384fd9.tar.bz2
packages-456fb1177f7607295f25081e9edb7dcd7d384fd9.zip
Add 'dnsx/' from commit '02ec170becf7d9033e322efbaed1e14892372e7b'
git-subtree-dir: dnsx git-subtree-mainline: 22fa048868681f5b211bfc7097281662c6f6f2ef git-subtree-split: 02ec170becf7d9033e322efbaed1e14892372e7b
Diffstat (limited to 'dnsx/PKGBUILD')
-rw-r--r--dnsx/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/dnsx/PKGBUILD b/dnsx/PKGBUILD
new file mode 100644
index 0000000..2a7a968
--- /dev/null
+++ b/dnsx/PKGBUILD
@@ -0,0 +1,37 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
3
4pkgname='dnsx'
5pkgver=1.1.4
6pkgrel=1
7pkgdesc='Fast and multi-purpose DNS toolkit'
8arch=('x86_64')
9url='https://github.com/projectdiscovery/dnsx'
10license=('MIT')
11makedepends=('go')
12provides=("${pkgname}")
13source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
14sha256sums=('7c0868cb27f904ab8e158881cf4862a15f216122a43525d2ea93a1aa7bf03cff')
15
16prepare() {
17 export GOPATH="${srcdir}/gopath"
18 go clean -modcache
19}
20
21build() {
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
28 cd "${pkgname}-${pkgver}/cmd/${pkgname}"
29 go build -v -o "${pkgname}" .
30}
31
32package() {
33 cd "${pkgname}-${pkgver}"
34 install -Dvm755 "cmd/${pkgname}/${pkgname}" -t "${pkgdir}/usr/bin"
35 install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}"
36 install -Dvm644 'LICENSE.md' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
37}