diff options
author | Yigit Sever | 2021-10-29 01:30:24 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 01:30:24 +0300 |
commit | 31d147b20c67d95a9e306d0749200bf964ac42af (patch) | |
tree | b0fbe2bb5aa0fec9983746a91d188643ca93466d /dnsx | |
parent | 4a31e5e0f3442a4a5ec9fba94f7bbc2c88312c69 (diff) | |
download | packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.gz packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.bz2 packages-31d147b20c67d95a9e306d0749200bf964ac42af.zip |
Use actual files instead of submodules
Diffstat (limited to 'dnsx')
m--------- | dnsx | 22 | ||||
-rw-r--r-- | dnsx/.SRCINFO | 13 | ||||
-rw-r--r-- | dnsx/.gitignore | 4 | ||||
-rw-r--r-- | dnsx/PKGBUILD | 37 |
4 files changed, 54 insertions, 22 deletions
diff --git a/dnsx b/dnsx deleted file mode 160000 | |||
Subproject cabdcec016b81fed2ba9a59a5082328753bc3c4 | |||
diff --git a/dnsx/.SRCINFO b/dnsx/.SRCINFO new file mode 100644 index 0000000..247fe1e --- /dev/null +++ b/dnsx/.SRCINFO | |||
@@ -0,0 +1,13 @@ | |||
1 | pkgbase = dnsx | ||
2 | pkgdesc = Fast and multi-purpose DNS toolkit | ||
3 | pkgver = 1.0.6 | ||
4 | pkgrel = 1 | ||
5 | url = https://github.com/projectdiscovery/dnsx | ||
6 | arch = x86_64 | ||
7 | license = MIT | ||
8 | makedepends = go | ||
9 | provides = dnsx | ||
10 | source = dnsx-1.0.6.tar.gz::https://github.com/projectdiscovery/dnsx/archive/v1.0.6.tar.gz | ||
11 | sha256sums = ef0ade0508f0d6d8ed7e80f06e2ed888eaca9837fde513fc801451044b6a567e | ||
12 | |||
13 | pkgname = dnsx | ||
diff --git a/dnsx/.gitignore b/dnsx/.gitignore new file mode 100644 index 0000000..05c6d4d --- /dev/null +++ b/dnsx/.gitignore | |||
@@ -0,0 +1,4 @@ | |||
1 | * | ||
2 | !.gitignore | ||
3 | !.SRCINFO | ||
4 | !PKGBUILD | ||
diff --git a/dnsx/PKGBUILD b/dnsx/PKGBUILD new file mode 100644 index 0000000..88d5a45 --- /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 | |||
4 | pkgname='dnsx' | ||
5 | pkgver=1.0.6 | ||
6 | pkgrel=1 | ||
7 | pkgdesc='Fast and multi-purpose DNS toolkit' | ||
8 | arch=('x86_64') | ||
9 | url='https://github.com/projectdiscovery/dnsx' | ||
10 | license=('MIT') | ||
11 | makedepends=('go') | ||
12 | provides=("${pkgname}") | ||
13 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") | ||
14 | sha256sums=('ef0ade0508f0d6d8ed7e80f06e2ed888eaca9837fde513fc801451044b6a567e') | ||
15 | |||
16 | prepare() { | ||
17 | export GOPATH="${srcdir}/gopath" | ||
18 | go clean -modcache | ||
19 | } | ||
20 | |||
21 | build() { | ||
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 | |||
32 | package() { | ||
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 | } | ||