aboutsummaryrefslogtreecommitdiffstats
path: root/community/scapy/APKBUILD
blob: 264feef014f4a63bc94bc50bb75fceb9bc8c1ca0 (plain) (blame)
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
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver=2.4.3
pkgrel=0
pkgdesc="Powerful interactive packet manipulation"
url="https://scapy.net/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3"
makedepends="python3-dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.zip::https://github.com/secdev/$pkgname/archive/v$pkgver.zip"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 setup.py check
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8df5701781bb2c80ad5d55bd8343ba0176b028446f7281cd7b9246f41befffe7b4bf28f4c737da4e6ced045764991a2aeb0326d0d9735209532eb4a66b6e89dd  scapy-2.4.3.zip"