/
PKGBUILD
53 lines (43 loc) · 1.31 KB
/
PKGBUILD
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
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=sippts
pkgver=v4.0.r13.gb41ac06
pkgrel=1
epoch=1
pkgdesc='Set of tools to audit SIP based VoIP Systems.'
groups=('blackarch' 'blackarch-voip')
arch=('any')
url='https://github.com/Pepelux/sippts'
license=('custom:unknown')
depends=('python' 'python-netifaces' 'python-ipy' 'python-pyshark'
'python-scapy' 'python-arpspoof' 'python-websocket-client' 'python-rel'
'python-pyradamsa')
makedepends=('git' 'python-pip' 'python-build' 'python-wheel')
source=("git+https://github.com/Pepelux/$pkgname.git")
sha512sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $pkgname
python -m build --wheel --outdir="$startdir/dist"
}
package() {
cd $pkgname
pip install \
--verbose \
--disable-pip-version-check \
--no-warn-script-location \
--ignore-installed \
--no-compile \
--no-deps \
--root="$pkgdir" \
--prefix=/usr \
--no-index \
--find-links="file://$startdir/dist" \
$pkgname
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
mv "$pkgdir/usr/bin/arpspoof" "$pkgdir/usr/bin/$pkgname-arpspoof"
}