aboutsummaryrefslogtreecommitdiffstats
path: root/community/scapy/APKBUILD
blob: a23e98e2d3fff1552a1edfab92051ced3cb9c548 (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.2
pkgrel=1
pkgdesc="Powerful interactive packet manipulation"
url="http://www.secdev.org/projects/scapy/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python2"
makedepends="python2-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"
	python2 setup.py build
}

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

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

sha512sums="b7527a955d445c12e7957e8fe060bc0150442ccc75d63cea03c935c135c3f87c853fb4b824f46261e4c6b62a89a116afaf6ee5bdc610b76cbb64a7ba1249affa  scapy-2.4.2.zip"