blob: 8dd25e34d9384138e4a72049ce531344a63c7c36 (
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
|
# Maintainer:
# Contributor: Jay Ta'ala <jay@jaytaala.com>
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: YaYPIXXO <viggo@lekdorf.com>
pkgname=evillimiter-git
pkgver=1.5.0.r0.g46d2033
pkgrel=2
pkgdesc="Tool that monitors, analyzes and limits the bandwidth of devices on the local network without administrative access."
arch=('any')
url="https://github.com/bitbrute/evillimiter"
license=('MIT')
depends=(
'glibc'
'python-colorama'
'python-netaddr'
'python-netifaces'
'python-tqdm'
'python-scapy'
'python-setuptools'
'python-terminaltables'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/bitbrute/evillimiter.git')
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname%-git}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
# Fix LIBC issue
ln -sf /usr/lib/libc.a "$pkgdir/usr/lib/liblibc.a"
}
|