summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d208c759ae7b841357ad487fb891625a6df4df2a (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
# Maintainer Swissky <swisskysec@protonmail.com>
pkgname=payloadsallthethings-git
pkgbase=payloadsallthethings
pkgver=r232.928a454
pkgrel=1
pkgdesc="A list of useful payloads and bypass for Web Application Security and Pentest/CTF."
arch=('any')
url="https://github.com/swisskyrepo/PayloadsAllTheThings/"
license=('unknown')
groups=()
depends=()
makedepends=('git')
provides=("${pkgname}")
conflicts=()
replaces=()
backup=()
options=()
install=
source=('payloadsallthethings-git::git+https://github.com/swisskyrepo/PayloadsAllTheThings.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


package() {
	mkdir -p "${pkgdir}/usr/share/wordlists/${pkgname}"
	find "${srcdir}/${pkgname}" -maxdepth 1 | grep -v \\.git | xargs -I{} cp -r {} "${pkgdir}/usr/share/wordlists/${pkgname}"
}