aboutsummaryrefslogtreecommitdiffstats
path: root/community/scapy/APKBUILD
blob: cc748014abc555dea7580c55078df53715098f66 (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
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver=2.4.0
pkgrel=0
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 || return 1
}

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

sha512sums="3b267739fbd4e1c5719f58be0f76a373085b5f3b34ab3e410e7f23614745d90f425c6226f0e5f73429c81582f58ee43f4cc3ec2868c7fe1600c14e4f81142df7  scapy-2.4.0.zip"