blob: 83e594c56f2b1f4f274ef9f32c7e5bc19f63e5be (
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
|
# Maintainer: kso <keansum AT gmail DOT com>
pkgname=htcap-git
_pkgname=htcap
pkgver=1.0.1.r36.gdcc0078
pkgrel=1
pkgdesc="Single Page Application (SPA) crawler by intercepting AJAX calls and DOM changes"
arch=('x86_64' 'i686')
url="http://htcap.org/"
license=('GPL2')
depends=('python2'
'phantomjs'
'sqlmap')
optdepends=('arachni')
makedepends=('git')
install=htcap.install
source=('git+https://github.com/segment-srl/htcap')
md5sums=('SKIP')
prepare() {
cd "$srcdir/$_pkgname"
sed -i 's_#\!/usr/bin/env python_#\!/usr/bin/env python2.7_' htcap.py
}
pkgver() {
cd "$_pkgname"
# cutting off 'v' prefix that presents in the git tag
# adding the r and replacing '.' with '-'.
# eg. v1.0.1-36-gdcc0078 becomes
# 1.0.1.r36.gdcc0078
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
mkdir -p "$pkgdir"/usr/share/
mv "$_pkgname" "$pkgdir"/usr/share/
}
|