aboutsummaryrefslogtreecommitdiffstats
path: root/community/scapy/APKBUILD
blob: 9653bf1ad622eaacee998c09fd90861bb7814626 (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
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver="2.3.2"
pkgrel=1
pkgdesc="Powerful interactive packet manipulation"
url="http://www.secdev.org/projects/scapy/"
arch="noarch"
license="GPL3+"
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 || return 1
}

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

md5sums="06c1be0b261d36907c3ff24fa443b4aa  scapy-2.3.2.zip"
sha256sums="3de539ca67dd39e41287f0b36afd85188bd437604092726684c98debd816df01  scapy-2.3.2.zip"
sha512sums="e120800f498a37a435e175725a071facca65c69c006e64d305ac26d70db206ca0b44e11d4e0ba593c6e31fc33452b0494fe8f8c431d9e3a841c38957144c270b  scapy-2.3.2.zip"