blob: 288455778eb270795b436094b1b7724973018ade (
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
|
# Maintainer : Kr1ss $(echo \<kr1ss+x-yandex+com\>|sed s/\+/./g\;s/\-/@/)
pkgname=dirsearch-git
pkgver() {
cd "${pkgname%-git}"
git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
#printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
pkgver=v0.3.8.r82.949751e
pkgrel=1
pkgdesc='Web path scanner/fuzzer, written in Python'
arch=('any')
url="https://github.com/maurosoria/${pkgname%-git}"
license=('GPL2')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
depends=('python')
makedepends=('git')
changelog=CHANGELOG.md
source=("git+$url.git")
sha256sums=('SKIP')
prepare() {
cd "${pkgname%-git}"
rm .gitignore || :
rm -r {logs,reports}
sed -i 's/^#\(save-logs-home.*$\)/\1/' default.conf
}
package() {
cd "${pkgname%-git}"
install -dm755 "$pkgdir"/usr/{bin,{share/doc/,lib/}${pkgname%-git}}
cp -a * "$pkgdir/usr/lib/${pkgname%-git}/"
install -m644 *.md "$pkgdir/usr/share/doc/${pkgname%-git}/"
ln -s /usr/lib/${pkgname%-git}/${pkgname%-git}.py "$pkgdir/usr/bin/${pkgname%-git}"
}
# vim: ts=2 sw=2 et ft=PKGBUILD:
|