summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cab4f95b015e3e7f100f7fc142391d70f1963b9b (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
# Maintainer :  Kr1ss $(sed s/\+/./g\;s/\-/@/ <<<\<kr1ss+x-yandex+com\>)


pkgname=joomscan-git
_name="${pkgname%-git}"

pkgver() { git -C "$_name" describe --tags | sed 's:-:\+:g'; }
pkgver=0.0.7+38+g7931539
pkgrel=1

pkgdesc='OWASP Joomla! security scanner'
arch=('any')
url=https://www.owasp.org/index.php/Category:OWASP_Joomla_Vulnerability_Scanner_Project
license=('GPL3')

provides=("$_name")
conflicts=("$_name")

makedepends=('git')
depends=('perl')

changelog='CHANGELOG.md'
source=("git+https://github.com/rezasp/$_name")
sha256sums=('SKIP')


prepare() { find "$_name" -name '*.pl' -exec sed -i 's/\r$//' {} \;; }

package() {
	cd "$_name"
	install -Dm755 "$_name".pl -t"$pkgdir/usr/lib/$_name/"
	cp -a --no-preserve=o core exploit modules "$pkgdir/usr/lib/$_name/"
	install -dm755 "$pkgdir/usr/bin"
	ln -s "/usr/lib/$_name/$_name.pl" "$pkgdir/usr/bin/$_name"
	install -Dm644 {CHANGELOG,README}.md Dockerfile -t"$pkgdir/usr/share/doc/$_name/"
}


# vim: ts=4 sw=4 noet ft=PKGBUILD: