blob: bac6db4c0f13644c814af57c2b4779c63ce657c0 (
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
47
48
49
50
51
52
53
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
pkgname='tekdefense-automater'
pkgver=88.42548cf
pkgrel=3
pkgdesc='IP URL and MD5 OSINT Analysis'
arch=('any')
url='https://github.com/1aN0rmus/TekDefense-Automater'
license=('MIT')
depends=('python2')
makedepends=('git')
source=('git+https://github.com/1aN0rmus/TekDefense-Automater.git')
sha1sums=('SKIP')
pkgver() {
cd "$srcdir/TekDefense-Automater"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
prepare() {
cd "$srcdir/TekDefense-Automater"
sed -i 's|/usr/bin/python|/usr/bin/python2|g' Automater.py
}
package() {
cd "$srcdir/TekDefense-Automater"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/tekdefense-automater"
for f in *.py
do
install -m644 $f "$pkgdir/usr/share/tekdefense-automater/$f"
done
install -Dm644 -t "$pkgdir/usr/share/tekdefense-automater/" *.xml
install -Dm644 "LICENSE" \
"$pkgdir/usr/share/licenses/tekdefense-automater/LICENSE"
install -Dm644 "README.md" \
"$pkgdir/usr/share/doc/tekdefense-automater/README.md"
cp -a docs/* "$pkgdir/usr/share/doc/tekdefense-automater"
cat > "$pkgdir/usr/bin/automater" << EOF
#!/bin/sh
cd /usr/share/tekdefense-automater
exec python2 Automater.py "\$@"
EOF
chmod +x "$pkgdir/usr/bin/automater"
}
|