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

md5sums="24f433a1892d66822062a07b0f3925c7  scapy-2.3.3.zip"
sha256sums="f0de9e25160d7231c2cdb8f0564ace60650ae966cf086bd74d177a6b91f8e9f3  scapy-2.3.3.zip"
sha512sums="529e9259d7a4a90df22623cacaae05d64cafa1831c1bc6994a79d5d056d5a1669b12919476305aa08d13a68261e82de5b42fef0320a4b68c44b5288379819911  scapy-2.3.3.zip"