diff options
author | Yigit Sever | 2023-02-16 16:52:01 +0300 |
---|---|---|
committer | Yigit Sever | 2023-02-16 16:52:01 +0300 |
commit | 7e8b0f54a876dae77f0bf252da798c3b6fa32507 (patch) | |
tree | 3a2693a580f191fae55c68d6b0f7830461fa6b3c /dnsx/PKGBUILD | |
parent | fe7453f2b167500aff44f3281514836362531b3d (diff) | |
download | packages-7e8b0f54a876dae77f0bf252da798c3b6fa32507.tar.gz packages-7e8b0f54a876dae77f0bf252da798c3b6fa32507.tar.bz2 packages-7e8b0f54a876dae77f0bf252da798c3b6fa32507.zip |
Deleted package: dnsx
Diffstat (limited to 'dnsx/PKGBUILD')
-rw-r--r-- | dnsx/PKGBUILD | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/dnsx/PKGBUILD b/dnsx/PKGBUILD deleted file mode 100644 index d37017d..0000000 --- a/dnsx/PKGBUILD +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | # Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz> | ||
3 | |||
4 | pkgname='dnsx' | ||
5 | pkgver=1.1.2 | ||
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=('fd2375639c00021c99e69071011df64aa233f07aa6935968880ec134412dd993') | ||
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 | } | ||