blob: 941d53f5fd96d86534e5a29f1d2d85b460e7bc8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: FLX (Paul Werther) <flx@evait.de>
pkgname=pd-tools
_pkgname=pdtm
pkgver=20240410
pkgrel=1
pkgdesc='Provides all open source tools available in one package from ProjectDiscovery by installing the precompiled binaries using pdtm'
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/projectdiscovery/pdtm'
license=('MIT')
makedepends=('go' 'git')
provides=("aix" "chaos-client" "asnmap" "nuclei" "pdtm" "katana" "subfinder" "dnsx" "naabu" "httpx" "uncover" "cloudlist" "proxify" "tlsx" "notify" "chaos-client" "shuffledns" "mapcidr" "interactsh-server" "interactsh-client" "cvemap")
conflicts=("aix" "chaos-client" "asnmap" "nuclei" "pdtm" "katana" "subfinder" "dnsx" "naabu" "httpx" "uncover" "cloudlist" "proxify" "tlsx" "notify" "chaos-client" "shuffledns" "mapcidr" "interactsh-server" "interactsh-client" "cvemap")
depends=('glibc')
options=(!debug)
source=("${_pkgname}::git+https://github.com/projectdiscovery/${_pkgname}.git")
sha256sums=('SKIP')
pkgver() {
date +'%Y%m%d'
}
prepare() {
cd "${srcdir}/${_pkgname}/cmd/${_pkgname}"
export GOPATH="${srcdir}/gopath"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
mkdir -p ../build
go build -o ../build -v ./...
go clean -modcache
cd "${srcdir}/${_pkgname}"
./cmd/build/${_pkgname} -install-all -binary-path ~/${pkgname}
}
package() {
cd ~/${pkgname}
for file in ~/${pkgname}/*; do
if [ -f "$file" ]; then
install -Dvm755 "$file" -t "${pkgdir}/usr/bin/"
fi
done
}
|